Infiltrating Rust with Nim packages

2023-12-05 Thread Clonk
Congratulation @mratsim. It would be great, if you have the time and will, to explain your choice of Nim over Rust for this package. I'm curious to hear the reasoning of creating a Nim-based Rust package instead of using Rust directly.

Infiltrating Rust with Nim packages

2023-12-05 Thread mratsim
Reporting back, Infiltration successful, we can now accelerate slow Rust with fast Nim ;) * Description: * nimble needs to check the `OUT_DIR` env variable to put the libraries in the correct place:

Infiltrating Rust with Nim packages

2023-10-07 Thread mratsim
Even simpler for me, I just need to call `nimble bindings` to delegate all the building to nimble:

Infiltrating Rust with Nim packages

2023-10-07 Thread guibar
To my knowledge there is no such package, but this `build.rs` should get you started: use std::env; use std::fs; use std::path::Path; use std::process::Command; fn main() { let main_file = "src/nimlib.nim"; let name = Path::new(main_file).file_ste

Infiltrating Rust with Nim packages

2023-10-06 Thread mratsim
I'd like to publish a Rust frontend to a Nim library that works as if native when use from `cargo build` and `cargo run`. This means at one point, the `build.rs` script should call the Nim compiler. I'm wondering if there is an example of that, or even better a package like `cc` which abstract