Can't find crate for `alloc_system`

Hi,

I am trying to build this lib GitHub - redsift/kdb-rs-hash: Rust Metro64 and Metro128 bindings for kdb+ on macos

nightly-x86_64-apple-darwin unchanged - rustc 1.42.0-nightly (3291ae339 2020-01-15)
~/kdb-rs-hash(master ✗) cargo --version --verbose
cargo 1.42.0-nightly (ad3dbe10e 2020-01-13)
release: 1.42.0
commit-hash: ad3dbe10e1e654fb1f032a5dd9481d7cbaa00d65
commit-date: 2020-01-13

~/kdb-rs-hash(master ✗) cargo build --release
warning: unused import: rkdb::SYMBOLS
--> build.rs:3:5
|
3 | use rkdb::SYMBOLS;
| ^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

Compiling libkrshash v0.1.0 (/Users/ajay/code/Rust/kdb-rs-hash)
error[E0463]: can't find crate for alloc_system
--> src/lib.rs:5:1
|
5 | extern crate alloc_system; // use the system allocator for performance and instrumentation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try rustc --explain E0463.
error: could not compile libkrshash.

Would appreciate any help in resolving this error

That crate is out of date. The alloc_system crate doesn't exist anymore - it's been folded into std: System in std::alloc - Rust

1 Like

Thanks a lot for the prompt response, I tried building against an older nightly build which seems to have worked.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.