rust-sourcebundler icon indicating copy to clipboard operation
rust-sourcebundler copied to clipboard

Bundle the source code of a binary in a crate into a single .rs file to be used in single-file programming competition sites

Results 6 rust-sourcebundler issues
Sort by recently updated
recently updated
newest added

Add support for a layout like: ``` src/ +-- main.rs +-- mymod.rs ``` The main.rs support only private "mod" listed in the main.rs but they are converted into "pub mod"...

If I have this in `src/bin/io-main.rs`: ```rust extern crate foo; use foo::*; use bar::Bar; // Submodule of foo pub fn main() { // ... } ``` then the generated file...

Hi, thank you for this little crate, very handy ! While trying to use it, I've seen that the bundler is particularly sensitive to files that do not have an...

resolve #12 Hi @lpenz. We have modified the multi-line `use crate` to convert them correctly. How do you like it?

In the current version, a single line with `use crate::(.*);$` such as: ```rs use crate::submod1; ``` is processed correctly. However, in the case of a multi-line `use crate` statement like:...