yeah i think iβll just wrap the vec in a tuple struct because iβll want to define a bunch of other methods on it
1
2
std::convert::TryFrom has an associated type called Error
and std::str::FromStr has an associated type called Err
π¦oopsπ¦
1
2
hmm, i have both a binary and library target in this crate, and cargo runs all the tests for each target, so it runs the tests twice
canβt see if thereβs a cfg attribute for targets so i can disable them in the source
tho i can turn off the lib tests in cargo.toml
2
2
i think i'm linking the binary target with the library in a strange way - i'm declaring the modules in both libΒ·rs and mainΒ·rs because i had some trouble using the lib in
1
Yes, that's basically #include'ing the tests over again.
You *should* be using the lib crate as any other client application would. In what way were you having trouble before?
1
can't remember now :-) it was some kind of name collision
i'll revisit it when i have the functionality closer to working, still a lot of cleanup needed in many places
1
I'm glad you're getting there :D let me know if you want other Rust hints :D
May 5, 2021 Β· 1:45 PM UTC
1

