Closed cofeek-codes closed 9 months ago
Also see this. To reproduce:
cargo init demo
cd demo
cargo add psp
cargo psp
Downgrading psp to 0.3.5 and using rust nightly-2023-08-01 is a workaround for me
rustup default nightly-2023-08-01
rustup component add rust-src --toolchain nightly-2023-08-01-x86_64-unknown-linux-gnu
If I may digress as much as I really like rust as I learn it, the requirement of this nightly compilers in almost every package I use is very annoying. But I understand its a price of cutting edge:/ Good thing I am able to somehow easily go back at least.
Should be solved by #155
Downgrading psp to 0.3.5 and using rust nightly-2023-08-01 is a workaround for me
Next time you can use toolchain that is specified in README.md
on line 59.
If I may digress as much as I really like rust as I learn it, the requirement of this nightly compilers in almost every package I use is very annoying. But I understand its a price of cutting edge:/ Good thing I am able to somehow easily go back at least.
Sorry, i'll look into reducing nighlty features or gate them under cargo features. However please understand that there's no way yet not to use unstable features, just because of -Zbuild-std
.
Next time you can use toolchain that is specified in
README.md
on line 59.
I knew it was stated somewhere;)
Sorry, i'll look into reducing nighlty features or gate them under cargo features.
No, please don't, this was just my general rant about rust reality. There are magnitude of packages that don't do anything special like math or whatever and suddenly use some nightly unstable features just because someone wanted to be smart or cool. It's annoying because you can't be sure to use it in a real production environment.
However, this is a rather hacky and complex solution to really niche and fun problem, and I really appreciate the great work. As its still work in progress, I don't think it will help the project at all. Probably when its completed it would be great to reduce dependency on nightly, but not yet. Introducing feature gates will only complicate things i think...
And besides, rust-psp
is rather a base-level library it doesn't hurt much to use unstable rust with it. Its other libraries that should minimize unstable stuff...
situation is like #151, but another error