-
-
Notifications
You must be signed in to change notification settings - Fork 116
Remove libc dependency on wasm #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@CAD97 Note that I've received advice that conflicts with what this PR is trying to do: rust-lang/regex#421 (comment) To my knowledge, folks have been able to use this crate with the wasm target. You say it is failing though. Could you please unpack that? |
OK: This is the tree I'm working with. With crates.io memchrD:\Christopher\Documents\Code\NAFI-lang\rust-nafi\wasm-api>cargo tree --target wasm32-unknown-unknown
nafi-wasm-api v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/wasm-api)
[dependencies]
├── nafi-lexer-repl v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer/repl)
│ [dependencies]
│ ├── failure v0.1.1
│ │ [dependencies]
│ │ ├── backtrace v0.3.4
│ │ │ [dependencies]
│ │ │ ├── cfg-if v0.1.2
│ │ │ └── rustc-demangle v0.1.5
│ │ └── failure_derive v0.1.1
│ │ [dependencies]
│ │ ├── quote v0.3.15
│ │ ├── syn v0.11.11
│ │ │ [dependencies]
│ │ │ ├── quote v0.3.15 (*)
│ │ │ ├── synom v0.11.3
│ │ │ │ [dependencies]
│ │ │ │ └── unicode-xid v0.0.4
│ │ │ └── unicode-xid v0.0.4 (*)
│ │ └── synstructure v0.6.1
│ │ [dependencies]
│ │ ├── quote v0.3.15 (*)
│ │ └── syn v0.11.11 (*)
│ ├── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer)
│ │ [dependencies]
│ │ ├── failure v0.1.1 (*)
│ │ ├── lazy_static v1.0.0
│ │ ├── log v0.4.1
│ │ │ [dependencies]
│ │ │ └── cfg-if v0.1.2 (*)
│ │ ├── memchr v2.0.1
│ │ │ [dependencies]
│ │ │ └── libc v0.2.33
│ │ ├── nafi-location v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/location)
│ │ │ [dependencies]
│ │ │ ├── derive_more v0.7.1
│ │ │ │ [dependencies]
│ │ │ │ ├── quote v0.3.15 (*)
│ │ │ │ └── syn v0.11.11 (*)
│ │ │ ├── serde v1.0.36
│ │ │ └── serde_derive v1.0.36
│ │ │ [dependencies]
│ │ │ ├── proc-macro2 v0.2.3
│ │ │ │ [dependencies]
│ │ │ │ └── unicode-xid v0.1.0
│ │ │ ├── quote v0.4.2
│ │ │ │ [dependencies]
│ │ │ │ └── proc-macro2 v0.2.3 (*)
│ │ │ ├── serde_derive_internals v0.22.2
│ │ │ │ [dependencies]
│ │ │ │ ├── proc-macro2 v0.2.3 (*)
│ │ │ │ └── syn v0.12.15
│ │ │ │ [dependencies]
│ │ │ │ ├── proc-macro2 v0.2.3 (*)
│ │ │ │ ├── quote v0.4.2 (*)
│ │ │ │ └── unicode-xid v0.1.0 (*)
│ │ │ └── syn v0.12.15 (*)
│ │ ├── nafi-tokens v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/tokens)
│ │ │ [dependencies]
│ │ │ ├── derive_more v0.10.0
│ │ │ │ [dependencies]
│ │ │ │ ├── quote v0.4.2 (*)
│ │ │ │ └── syn v0.12.15 (*)
│ │ │ │ [build-dependencies]
│ │ │ │ └── rustc_version v0.1.7
│ │ │ │ [dependencies]
│ │ │ │ └── semver v0.1.20
│ │ │ ├── nafi-location v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/location) (*)
│ │ │ ├── serde v1.0.36 (*)
│ │ │ └── serde_derive v1.0.36 (*)
│ │ ├── nom v4.0.0-beta2
│ │ │ [dependencies]
│ │ │ ├── lazy_static v1.0.0 (*)
│ │ │ ├── memchr v2.0.1 (*)
│ │ │ └── regex v0.2.5
│ │ │ [dependencies]
│ │ │ ├── aho-corasick v0.6.4
│ │ │ │ [dependencies]
│ │ │ │ └── memchr v2.0.1 (*)
│ │ │ ├── memchr v2.0.1 (*)
│ │ │ ├── regex-syntax v0.4.2
│ │ │ ├── thread_local v0.3.5
│ │ │ │ [dependencies]
│ │ │ │ ├── lazy_static v1.0.0 (*)
│ │ │ │ └── unreachable v1.0.0
│ │ │ │ [dependencies]
│ │ │ │ └── void v1.0.2
│ │ │ └── utf8-ranges v1.0.0
│ │ ├── nom_locate v0.3.0-beta.2 (https://github.com/CAD97/nom_locate.git?rev=2f982aa4f148c64cf1a8a9a97f44c959b26d220e#2f982aa4)
│ │ │ [dependencies]
│ │ │ ├── bytecount v0.3.1
│ │ │ ├── memchr v2.0.1 (*)
│ │ │ └── nom v4.0.0-beta2 (*)
│ │ └── regex v0.2.5 (*)
│ │ [build-dependencies]
│ │ ├── lazy_static v1.0.0 (*)
│ │ └── regex v0.2.5 (*)
│ └── nafi-tokens v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/tokens) (*)
└── stdweb v0.4.4
[dependencies]
├── discard v1.0.3
├── futures v0.1.21
├── serde v1.0.36 (*)
├── serde_json v1.0.16
│ [dependencies]
│ ├── dtoa v0.4.2
│ ├── itoa v0.4.1
│ └── serde v1.0.36 (*)
├── stdweb-derive v0.4.0
│ [dependencies]
│ ├── quote v0.4.2 (*)
│ ├── serde v1.0.36 (*)
│ ├── serde_derive v1.0.36 (*)
│ └── syn v0.12.15 (*)
└── stdweb-internal-macros v0.1.0
[dependencies]
├── base-x v0.2.2
├── quote v0.4.2 (*)
├── serde v1.0.36 (*)
├── serde_derive v1.0.36 (*)
├── serde_json v1.0.16 (*)
└── syn v0.12.15 (*)
[dev-dependencies]
└── serde_json v1.0.16 (*)
D:\Christopher\Documents\Code\NAFI-lang\rust-nafi\wasm-api>cargo tree --package libc --target wasm32-unknown-unknown -i
libc v0.2.33
[dependencies]
└── memchr v2.0.1
[dependencies]
├── aho-corasick v0.6.4
│ [dependencies]
│ └── regex v0.2.5
│ [dependencies]
│ ├── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer)
│ │ [dependencies]
│ │ └── nafi-lexer-repl v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer/repl)
│ │ [dependencies]
│ │ └── nafi-wasm-api v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/wasm-api)
│ └── nom v4.0.0-beta2
│ [dependencies]
│ ├── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer) (*)
│ └── nom_locate v0.3.0-beta.2 (https://github.com/CAD97/nom_locate.git?rev=2f982aa4f148c64cf1a8a9a97f44c959b26d220e#2f982aa4)
│ [dependencies]
│ └── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer) (*)
│ [build-dependencies]
│ └── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer) (*)
├── nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer) (*)
├── nom v4.0.0-beta2 (*)
├── nom_locate v0.3.0-beta.2 (https://github.com/CAD97/nom_locate.git?rev=2f982aa4f148c64cf1a8a9a97f44c959b26d220e#2f982aa4) (*)
└── regex v0.2.5 (*)
D:\Christopher\Documents\Code\NAFI-lang\rust-nafi\wasm-api>cargo build --release --target wasm32-unknown-unknown
Compiling libc v0.2.33
Compiling serde v1.0.36
Compiling backtrace v0.3.4
Compiling regex v0.2.5
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:163:35
|
163 | pub fn fopen(filename: *const c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:164:31
|
164 | mode: *const c_char) -> *mut FILE;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:167:37
|
167 | pub fn freopen(filename: *const c_char, mode: *const c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:167:58
|
167 | pub fn freopen(filename: *const c_char, mode: *const c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:171:36
|
171 | pub fn remove(filename: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:172:35
|
172 | pub fn rename(oldname: *const c_char, newname: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:172:59
|
172 | pub fn rename(oldname: *const c_char, newname: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:175:33
|
175 | buffer: *mut c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:178:48
|
178 | pub fn setbuf(stream: *mut FILE, buf: *mut c_char);
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:182:28
|
182 | pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:182:73
|
182 | pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:186:28
|
186 | pub fn fputs(s: *const c_char, stream: *mut FILE)-> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:187:27
|
187 | pub fn puts(s: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_long` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:201:45
|
201 | pub fn fseek(stream: *mut FILE, offset: c_long, whence: c_int) -> c_int;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_long;
|
error[E0412]: cannot find type `c_long` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:202:40
|
202 | pub fn ftell(stream: *mut FILE) -> c_long;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_long;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:210:29
|
210 | pub fn perror(s: *const c_char);
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:211:27
|
211 | pub fn atoi(s: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:214:29
|
214 | pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:214:53
|
214 | pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:215:29
|
215 | pub fn strtol(s: *const c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:216:35
|
216 | endp: *mut *mut c_char, base: c_int) -> c_long;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_long` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:216:59
|
216 | endp: *mut *mut c_char, base: c_int) -> c_long;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_long;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:217:30
|
217 | pub fn strtoul(s: *const c_char, endp: *mut *mut c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:217:54
|
217 | pub fn strtoul(s: *const c_char, endp: *mut *mut c_char,
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_ulong` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:218:36
|
218 | base: c_int) -> c_ulong;
| ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_ulong;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:229:29
|
229 | pub fn system(s: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:230:29
|
230 | pub fn getenv(s: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:230:45
|
230 | pub fn getenv(s: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:232:29
|
232 | pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:232:49
|
232 | pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:232:65
|
232 | pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:233:30
|
233 | pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t)
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:233:50
|
233 | pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t)
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:234:28
|
234 | -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:235:27
|
235 | pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:235:46
|
235 | pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:235:62
|
235 | pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:236:28
|
236 | pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:236:47
|
236 | pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:236:74
|
236 | pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:237:30
|
237 | pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:237:49
|
237 | pub fn strcmp(cs: *const c_char, ct: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:238:31
|
238 | pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:238:50
|
238 | pub fn strncmp(cs: *const c_char, ct: *const c_char, n: size_t) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:239:31
|
239 | pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:239:50
|
239 | pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:240:30
|
240 | pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:240:56
|
240 | pub fn strchr(cs: *const c_char, c: c_int) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:241:31
|
241 | pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:241:57
|
241 | pub fn strrchr(cs: *const c_char, c: c_int) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:242:30
|
242 | pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:242:49
|
242 | pub fn strspn(cs: *const c_char, ct: *const c_char) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:243:31
|
243 | pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:243:50
|
243 | pub fn strcspn(cs: *const c_char, ct: *const c_char) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:244:30
|
244 | pub fn strdup(cs: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:244:46
|
244 | pub fn strdup(cs: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:245:31
|
245 | pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:245:50
|
245 | pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:245:66
|
245 | pub fn strpbrk(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:246:30
|
246 | pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:246:49
|
246 | pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:246:65
| Compiling
failure v2460.1 .1
| pub fn strstr(cs: *const c_char, ct: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:247:30
|
247 | pub fn strlen(cs: *const c_char) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:248:31
|
248 | pub fn strnlen(cs: *const c_char, maxlen: size_t) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:251:39
|
251 | pub fn strerror(n: c_int) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:252:27
|
252 | pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:252:45
|
252 | pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:252:61
|
252 | pub fn strtok(s: *mut c_char, t: *const c_char) -> *mut c_char;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:253:28
|
253 | pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:253:47
|
253 | pub fn strxfrm(s: *mut c_char, ct: *const c_char, n: size_t) -> size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `wchar_t` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:254:31
|
254 | pub fn wcslen(buf: *const wchar_t) -> size_t;
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:255:32
|
255 | pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> ::size_t;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `wchar_t` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:255:52
|
255 | pub fn wcstombs(dest: *mut c_char, src: *const wchar_t, n: size_t) -> ::size_t;
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `c_char` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:269:27
|
269 | pub fn atof(s: *const c_char) -> c_double;
| ^^^^^^ did you mean `c_schar`?
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_char;
|
error[E0412]: cannot find type `c_long` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:270:20
|
270 | pub fn labs(i: c_long) -> c_long;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_long;
|
error[E0412]: cannot find type `c_long` in this scope
--> C:\Users\Christopher\.cargo\registry\src\github.1485827954.workers.dev-1ecc6299db9ec823\libc-0.2.33\src\lib.rs:270:31
|
270 | pub fn labs(i: c_long) -> c_long;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
100 | use core::os::raw::c_long;
|
error: aborting due to 76 previous errors
For more information about this error, try `rustc --explain E0412`.
error: Could not compile `libc`.
warning: build failed, waiting for other jobs to finish...
error: build failed
D:\Christopher\Documents\Code\NAFI-lang\rust-nafi\wasm-api>cargo update
Updating git repository `https://github.com/rust-num/num-bigint.git`
Updating registry `https://github.com/rust-lang/crates.io-index`
Updating git repository `https://github.com/CAD97/nom_locate.git`
Updating atty v0.2.8 -> v0.2.9
Updating backtrace v0.3.4 -> v0.3.6
Updating bitflags v1.0.1 -> v1.0.2
Updating cc v1.0.3 -> v1.0.14
Removing dbghelp-sys v0.2.0
Updating env_logger v0.5.6 -> v0.5.9
Removing kernel32-sys v0.2.2
Updating libc v0.2.33 -> v0.2.40
Updating nom v4.0.0-beta2 -> v4.0.0-beta3
Updating proc-macro2 v0.3.7 -> v0.3.8
Updating regex v0.2.5 -> v0.2.10
Updating regex-syntax v0.4.2 -> v0.5.5
Updating rustc-demangle v0.1.5 -> v0.1.7
Updating serde v1.0.36 -> v1.0.43
Updating serde_derive v1.0.36 -> v1.0.43
Updating serde_derive_internals v0.22.2 -> v0.23.1
Updating structopt v0.2.6 -> v0.2.8
Updating structopt-derive v0.2.6 -> v0.2.8
Updating syn v0.13.2 -> v0.13.3
Adding ucd-util v0.1.1
Removing winapi v0.2.8
Removing winapi-build v0.1.1
D:\Christopher\Documents\Code\NAFI-lang\rust-nafi\wasm-api>cargo build --release --target wasm32-unknown-unknown
Downloading syn v0.13.3
Downloading proc-macro2 v0.3.8
Downloading nom v4.0.0-beta3
Compiling libc v0.2.40
Compiling regex v0.2.10
Compiling ucd-util v0.1.1
Compiling serde v1.0.43
Compiling rustc-demangle v0.1.7
Compiling proc-macro2 v0.3.8
Compiling memchr v2.0.1
Compiling regex-syntax v0.5.5
Compiling syn v0.12.15
Compiling aho-corasick v0.6.4
Compiling backtrace v0.3.6
Compiling failure v0.1.1
Compiling quote v0.5.2
Compiling syn v0.13.3
Compiling serde_json v1.0.16
Compiling serde_derive_internals v0.23.1
Compiling derive_more v0.10.0
Compiling nom v4.0.0-beta3
Compiling nafi-lexer v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer)
Compiling nom_locate v0.3.0-beta.2 (https://github.com/CAD97/nom_locate.git?rev=2f982aa4f148c64cf1a8a9a97f44c959b26d220e#2f982aa4)
Compiling serde_derive v1.0.43
Compiling nafi-location v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/location)
Compiling stdweb-derive v0.4.0
Compiling stdweb-internal-macros v0.1.0
Compiling nafi-tokens v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/tokens)
Compiling nafi-lexer-repl v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/lexer/repl)
Compiling stdweb v0.4.4
Compiling nafi-wasm-api v0.0.0 (file:///D:/Christopher/Documents/Code/NAFI-lang/rust-nafi/wasm-api)
Finished release [optimized] target(s) in 1.69 secs (The time is not accurate I had to fix a thing and rebuild therefore skipping recompilation of dependencies) ...It appears I just had an old version of libc that wasn't properly empty. ¯\_(ツ)_/¯ My bad, sorry for bothering you! |
It's already not being linked:
https://github.com/BurntSushi/rust-memchr/blob/c9a7e713d65448541ca373734f3cd18e11d29c1d/src/lib.rs#L16-L17
But because it's still on the dependency list, cargo is still trying to build it for
wasm32-unknown-unknown
, and it's failing pretty hard, obviously. This is the one thing keeping me from building my parser for my toy language for wasm32-unknown-unknown. I patched to this branch and it works perfectly (or at least it compiles, I haven't actually hooked stuff up yet).