We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
why
error[E0425]: cannot find value `GlobalDlmalloc` in crate `dlmalloc` --> engine/src/lib.rs:36:52 | 36 | static ALLOC: dlmalloc::GlobalDlmalloc = dlmalloc::GlobalDlmalloc;
The text was updated successfully, but these errors were encountered:
@alexcrichton
Sorry, something went wrong.
RUSTSEC recommends this cargo to be used. Could you write a guide on how to integrate?
angular-rust/yew-components#7
Hello @hskang9
I think you forgot to use the global feature in Cargo.toml:
global
Cargo.toml
dlmalloc = { version = "0.2.4", features = ["global"] }
and in libs.rs
libs.rs
static ALLOC: dlmalloc::GlobalDlmalloc = dlmalloc::GlobalDlmalloc;
works for me :)
Please @alexcrichton, close this issue
No branches or pull requests
why
The text was updated successfully, but these errors were encountered: