Closed weezy20 closed 7 months ago
Thank you for reporting it. Can you add a few more details so I can reproduce it?
I installed this and tried it on this repo : https://github.com/r0gue-io/pop-cli.
The reason is that rust-bundler-cp doesn't support cargo dependencies. I've updated readme
@Endle Any reason why?
rust-bundler-cp will not recursively load [dependencies] in Cargo.toml.
Can you share your use case for it?
I don't have a particular use case, just curious about what's possible. Since cargo dependencies are just extern crates, I could imagine a scenario where it would be possible but at the same time I also think that there are unseen challenges. I have been looking into various bundlers so that I could compile a single .rs
file with all libraries linked to it, but yeah, it would be a lot of code duplication from cargo
which is not trivial by any means.
Thanks for explanation. I haven't read the details of cargo
design, but I think the logic for extern crates is not simple. It needs internet connection to crates.io and other repos, and do it recursively. It also solves conflicting versions. After solving, different crates will be compiled in parallel. I don't see benefit of not using cargo.
For this project, rust-bundler-cp, it targets a very specific scenario: competitive programming. These sites only allow a single file for submission. This is also the purpose for other bundlers mentioned in https://github.com/Endle/rust-bundler-cp?tab=readme-ov-file#similar-projects
I get
stderr: error[E0670]: `async fn` is not permitted in Rust 2015