-
Notifications
You must be signed in to change notification settings - Fork 16
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
SharedCache
option causes compilation error
#30
Comments
use memoize::memoize;
#[derive(Clone)]
struct Struct {}
#[derive(Clone)]
struct Error {}
#[memoize(SharedCache, Capacity: 1024)]
fn my_function(arg: &'static str) -> Result<Struct, Error> {
println!("{}", arg);
Ok(Struct{})
}
fn main() {
let s = "Hello World";
my_function(s).ok();
} I tried this, and it works:
I notice that the symbol which can't be found is upper-cased, but I think current versions use a lower-case version. Can you double check the versions maybe? Otherwise I don't know much right now |
I'm definitely using memoize version 0.4.1 with rustc version 1.74.0. Here's the version tree for memoize in case it's helpful:
|
I'm reporting the same issue on a new project with only memoize and the sample code provided above, both with nightly 1.76.0 and stable 1.74.0. Here's my version tree:
|
Same issue here, turning on |
I also ran into this issue while trying to solve Advent of Code Day 12. I tried building with stable 1.74.0 and 1.74.1, and nightly 1.76. Here's my code, although fair warning it's a bit of a mess. EDIT: Pulling the crate from the github repo fixed the problem :) |
Hi @dermesser, thank you for this super useful crate! I'm trying to use the
SharedCache
option like so:But when I try to compile this I get:
This is on version 0.4.1. Do you have any ideas about what might be going on?
The text was updated successfully, but these errors were encountered: