Closed Dobermensch closed 3 years ago
Have you run cargo clean
? It removes the target
folder. If the target
folder sticks around you end up with all of the old build artifacts from when the code wasn't as it should be.
Yeap I did. Could it have something to do with running this on WSL ?
@Dobermensch It looks like you're using def_self
rather than def
so the method is on the class rather than the instance of the class. The README's use of it shows new
is never called when using def_self
. def_self
is like:
class ExampleRustLib
def self.hello
end
end
Oh goodness me... Thank you very much
Here's my lib.rs:
Here's my config/application.rb
Did
cargo build --release
&& thenrails s
thenrails c
Here's the output:
It was working before. I removed the Rutie code from
application.rb
to test things. It broke as expected. However, after adding the code back, restarted the app, rebuilt rust lib, now getting this new error.Any suggestions?