clvm-tools-rs provides a Rust implementation of tools for working with the Chialisp language, including a compiler and REPL, with Python and WebAssembly (WASM) bindings. It is a port of the original clvm_tools to Rust, aiming for improved performance and better alignment with the underlying clvm_rs Rust implementation. The library is actively developed, with its core Rust components seeing frequent updates.
pip install clvm-tools-rsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `compile_clvm` from `clvm_tools_rs` to compile a Chialisp source file into its CLVM hexadecimal representation. It creates a simple Chialisp program, compiles it, and prints the result.
If you require all Rust-based command-line tools, consider installing `clvm-tools-rs` via `cargo install clvm_tools_rs` from the source repository. For Python-centric development, `pip install` is sufficient, and the core `compile_clvm` function will be available.
Always use `from clvm_tools_rs import ...` for the Python bindings of the Rust port. Avoid `import clvm_tools` unless you specifically intend to use the legacy Python-only version.
If encountering build errors on M1 Macs, refer to the official `clvm-tools-rs` GitHub repository for specific build instructions, which may include using `cargo build --no-default-features`.
Ensure you have the package installed using pip: `pip install clvm-tools-rs`
Install the Rust toolchain (`curl https://sh.rustup.rs -sSf | sh`) and `maturin` (`pip install maturin`), then try installing again. If issues persist, refer to the official repository for platform-specific build instructions, especially for ARM-based systems like M1 Macs (`cargo build --no-default-features`).
Ensure your Rust toolchain is up to date (`rustup update` and `rustup default stable`), clean your build artifacts (`cargo clean`), and then attempt to rebuild. If you have made modifications, ensure type compatibility. For specific platform issues (like M1 Macs), follow the instructions to build with `cargo build --no-default-features`.
No dependency data recorded yet.