#Use of undeclared crate 'once_cell'
12 messages · Page 1 of 1 (latest)
Did you import it?
use std::cell::OnceCell;
once_cell used to be a third party crate but was recently added at std::cell::OnceCell
I think I fixed it by adding it to my cargo.toml? But it's still confusing because the original example code didn't have it listed as a dependancy in its cargo.toml on github
if it's once_cell::sync::OnceCell then you still need the library
can you post the link to the repo
It's an example for the iced gui library
I'm not able to log into discord on the pc I'm using, so give me a moment
[dependencies]
iced.workspace = true
iced.features = ["debug"]
once_cell.workspace = true
that's a dep taken from the workspace's dep declarations
Ahhh