Skip to main content

Rust implementation of klvm.

GitHub Coverage Status Build Crate Build Wheels

PyPI Crates.io

The cargo workspace includes an rlib crate, for use with rust or other applications, and a python wheel.

The python wheel is in wheel. The npm package is in wasm.

Tests

In order to run the unit tests, run:

cargo test

Fuzzing

The fuzzing infrastructure for klvm_rs uses cargo-fuzz.

Documentation for setting up fuzzing in rust can be found here.

To generate an initial corpus (for the run_program fuzzer), run:

cd tools
cargo run generate-fuzz-corpus

To get started, run:

cargo fuzz run run-program --jobs=32 -- -rss_limit_mb=4096

But with whatever number of jobs works best for you.

If you find issues in klvm_rs please use our bug bounty program.

Build Wheel

The klvm_rs wheel has python bindings for the rust implementation of klvm.

Use maturin to build the python interface. First, install into current virtualenv with

$ pip install maturin

While in the wheel directory, build klvm_rs into the current virtualenv with

$ maturin develop --release

On UNIX-based platforms, you may get a speed boost on sha256 operations by building with OpenSSL.

$ maturin develop --release --features=openssl

To build the wheel, do

$ maturin build --release

or

$ maturin build --release --features=openssl

Bumping Version Number

Make sure you have cargo-workspaces installed:

cargo install cargo-workspaces

To bump the versions of all relevant crates:

cargo ws version --force "**" --all --no-git-commit

Select "minor update" if there has not been any incompatible API changes, otherwise "major update".

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

klvm_rs-0.17.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

klvm_rs-0.17.1-cp38-abi3-win_amd64.whl (394.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ x86-64

klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

klvm_rs-0.17.1-cp38-abi3-macosx_13_0_x86_64.whl (447.1 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.17.1-cp38-abi3-macosx_13_0_arm64.whl (422.6 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

Details for the file klvm_rs-0.17.1.tar.gz.

File metadata

  • Download URL: klvm_rs-0.17.1.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for klvm_rs-0.17.1.tar.gz
Algorithm Hash digest
SHA256 11de0620867175e2663b64b63ef9e564f6ac33b71ed76543233362799e86d37b
MD5 f7aaba7457bbc0b2cce804591a42db46
BLAKE2b-256 ad423558386be7ce49f833ea45170e4fd9cbcaa752f8749b7867a3dfabc77eca

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.17.1.tar.gz:

Publisher: build-test.yml on Chik-Network/klvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klvm_rs-0.17.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: klvm_rs-0.17.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 394.7 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for klvm_rs-0.17.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ea1b8136699eb611a56504545817d00562d9628377c16c471684d412acd61ac1
MD5 4db4b7fe8a9b25c122c3e5d46ef2d2a6
BLAKE2b-256 ce3c16e37cc229c44aa1d246838ecd3107bb52ff7304dc52e52863ee11d51eea

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.17.1-cp38-abi3-win_amd64.whl:

Publisher: build-test.yml on Chik-Network/klvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 916876e5e083eeb10ff727369a5a08c501b2948ac9e668a6aed254a285e97e42
MD5 a9d046e0770c4238cc334c370e05fe57
BLAKE2b-256 b721939d720424ad42d62ac1b0e8beec909b3d2ba4add059e2633f4474f84130

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_x86_64.whl:

Publisher: build-test.yml on Chik-Network/klvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.17.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 da5dfa9b37b3e472368dcd588ddc5ef21b7d1db1046161b7663ca7c01c01d314
MD5 e4b3cf703979dbab2451a539be24a22b
BLAKE2b-256 b51eb20bd5aa163fa78e05810d50e97d3f20767f068aa491693bb3e6ee499629

See more details on using hashes here.

File details

Details for the file klvm_rs-0.17.1-cp38-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.17.1-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ea79a28d8a556a666305634cd2007c0952a602ba12497f9c4d21f58dab921ab3
MD5 73fec9193ffc41c97d4aff0ae0edca34
BLAKE2b-256 3d2cb51eef28ebec42879d7283e3f6c3ff31d34456ebad9d573f6dc0f77b40e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.17.1-cp38-abi3-macosx_13_0_x86_64.whl:

Publisher: build-test.yml on Chik-Network/klvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klvm_rs-0.17.1-cp38-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.17.1-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d01d08dc09b770bb4fc847efbbd00b8f246da594c797bc6ab9c82a165beda50b
MD5 c21040841053448f8397d2db02ae12ee
BLAKE2b-256 8af3d9fd57da2e158ab7338709c6f6e6a8a8d6b5afa73e95072c5381d5b8955c

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.17.1-cp38-abi3-macosx_13_0_arm64.whl:

Publisher: build-m1-wheel.yml on Chik-Network/klvm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.19.0

6 files

0.18.0

6 files

0.17.7

6 files

0.17.6

6 files

0.17.5

6 files

0.17.4

6 files

0.17.3

6 files

0.17.2

6 files

This release

0.17.1 This release

6 files

0.17.0

6 files

0.16.5

6 files

0.16.4

6 files

0.16.3

6 files

0.16.2

6 files

0.16.1

6 files

0.16.0

6 files

0.15.0

6 files

0.14.0

6 files

0.13.1

6 files

0.12.1

6 files

0.12.0

6 files

0.11.0

6 files

0.10.0

5 files

0.8.0

6 files

0.7.0

5 files

0.6.1

5 files

0.6.0

5 files

0.3.2

5 files

0.3.0

5 files

0.2.8

4 files

0.2.5

5 files

0.1.24

4 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page