Conversation
46bfeca to
38f75bd
Compare
|
Current progress: I'm quite stuck and confused with the lifetime of Rust code. |
|
Greetings @ndac-todoroki! I am new to rust so forgive me if my proposed solution is off the mark. Regarding the issue
According to the changelog detailing the
By continuing to manually declare the lifetimes ( |
|
Thanks for helping @cmush ! The lifetime problem seems a bit more complex to me, because
The returned I think something must be wrong with my implementation flow, but currently not available to solve it. BTW,
this error is because I've placed the same lifetime parameter elixir-id3/native/id3/src/lib.rs Lines 59 to 60 in 93d6b09 the function and the impl both has the same parameter and the outer one is shadowed. This should be changed to another name. |
|
I've changed from borrowing The These functions are not yet tested much yet.... I should write some tests :( |
This got me thinking I should pick up a rust book and some tuts. So that's what I've been up to :) |
@ndac-todoroki I can confirm that with the latest commits you've made, the library is able to successfully compile the crate as well as open an Sidenote: Earlier, I had issues compiling on an m1 device but the following setup fixed it:
asdf config (.tool-versions): |
I started on something: #9 |
|
If other people get here, I was able to use this library in Livebook by installing the dependency via: Mix.install([
{:id3, git: "https://github.com/ndac-todoroki/elixir-id3.git", branch: "update-deps"}
])I am in absolutely no hurry so I didn't want to add any urgency as I understand having tests and CI would help move this forward in the future. I also wanted to thank you because out of trying most of the public packages, this one just works(tm) when I used this branch. |
fixes #7.
This should make OTP24 to work.
Rustler 0.22 has many changes, and migrating from deprecated macros may be necessary.