error[E0433]: failed to resolve: use of undeclared crate or module `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lauxlib.rs:3:5
|
3 | use std::os::raw::{c_char, c_int, c_void};
| ^^^ use of undeclared crate or module `std`
error[E0433]: failed to resolve: use of undeclared crate or module `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lua.rs:3:5
|
3 | use std::marker::{PhantomData, PhantomPinned};
| ^^^ use of undeclared crate or module `std`
error[E0432]: unresolved import `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lauxlib.rs:4:5
|
4 | use std::ptr;
| ^^^ use of undeclared crate or module `std`
error[E0433]: failed to resolve: use of undeclared crate or module `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lua.rs:5:5
|
5 | use std::os::raw::{c_char, c_double, c_int, c_uchar, c_ushort, c_void};
| ^^^ use of undeclared crate or module `std`
error[E0432]: unresolved import `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lua.rs:4:5
|
4 | use std::mem;
| ^^^ use of undeclared crate or module `std`
error[E0433]: failed to resolve: use of undeclared crate or module `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lua.rs:430:9
|
430 | use std::ffi::CString;
| ^^^ use of undeclared crate or module `std`
error[E0433]: failed to resolve: use of undeclared crate or module `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lualib.rs:3:5
|
3 | use std::os::raw::c_int;
| ^^^ use of undeclared crate or module `std`
error[E0432]: unresolved import `std`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/ffi/lua54/lua.rs:6:5
|
6 | use std::ptr;
| ^^^ use of undeclared crate or module `std`
error[E0282]: type annotations needed
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/luaapi.rs:1144:25
|
1144 | name: s.as_ptr(),
| ^^^^^^ cannot infer type
error[E0271]: type mismatch resolving `<lua_State as Pointee>::Metadata == ()`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/coroutine.rs:95:21
|
95 | .resume(null_mut(), self.push_multi(args)? as _, &mut self.nres)
| ^^^^^^^^ expected `()`, found associated type
|
= note: expected unit type `()`
found associated type `<lua54::lua::lua_State as Pointee>::Metadata`
= help: consider constraining the associated type `<lua54::lua::lua_State as Pointee>::Metadata` to `()`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
= note: required for `lua54::lua::lua_State` to implement `Thin`
note: required by a bound in `null_mut`
--> /nix/store/yhcb1r9s0xq8hqpjgpcbm93zrrf5jqf0-rust-default-1.74.0-nightly-2023-09-23/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:543:35
|
543 | pub const fn null_mut<T: ?Sized + Thin>() -> *mut T {
| ^^^^ required by this bound in `null_mut`
error[E0271]: type mismatch resolving `<lua_State as Pointee>::Metadata == ()`
--> /Users/py/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ezlua-0.4.4/src/state.rs:462:50
|
462 | co.map(|s| s.as_ptr()).unwrap_or(core::ptr::null_mut()),
| ^^^^^^^^^^^^^^^^^^^ expected `()`, found associated type
|
= note: expected unit type `()`
found associated type `<lua54::lua::lua_State as Pointee>::Metadata`
= help: consider constraining the associated type `<lua54::lua::lua_State as Pointee>::Metadata` to `()`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
= note: required for `lua54::lua::lua_State` to implement `Thin`
note: required by a bound in `null_mut`
--> /nix/store/yhcb1r9s0xq8hqpjgpcbm93zrrf5jqf0-rust-default-1.74.0-nightly-2023-09-23/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:543:35
|
543 | pub const fn null_mut<T: ?Sized + Thin>() -> *mut T {
| ^^^^ required by this bound in `null_mut`
Some errors have detailed explanations: E0271, E0282, E0432, E0433.
For more information about an error, try `rustc --explain E0271`.
error: could not compile `ezlua` (lib) due to 11 previous errors
Error: cargo failed with error ExitStatus(unix_wait_status(25856))