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 fuzz_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.16.4.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.16.4-cp38-abi3-win_amd64.whl (393.7 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.16.4-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.16.4-cp38-abi3-manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

klvm_rs-0.16.4-cp38-abi3-macosx_13_0_x86_64.whl (446.2 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.16.4-cp38-abi3-macosx_13_0_arm64.whl (421.6 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.16.4.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.16.4.tar.gz
Algorithm Hash digest
SHA256 7de762de43627e397272954ded61c07343162e05bc03494f2c40b8be5986608a
MD5 60b9e22c04b47582403136702b51a23a
BLAKE2b-256 e6688a7161bc561e14aa32625af81eab30a36e240ad55e6906f2354312fcc53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.4.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.16.4-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: klvm_rs-0.16.4-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 393.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.16.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4d903cd4eb4f97a1debb4984502a4ec1ad0c45d8b4ad57bc5bde5616e47607d3
MD5 b6e4a119d397c4414fc219153968ff7f
BLAKE2b-256 522f1182cfabd4427dff527ad97256ce3de6cab993dc536d2e9303c2615d74b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.4-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.16.4-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.4-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a81b9433ef5609e299a46e71c8d8950436fb904b0c504c7babf540627010c878
MD5 73434d4d03dd2d97529d3cf65b8d98ac
BLAKE2b-256 475ac997d412b79fd233d3482f9a295eccafcde2bc99cce44d3e64e025d27e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.4-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.16.4-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.4-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6c3de06c4b36e0b976b9a5656def6cb59f1c6ca2236a6574cef42ef255cdfc3b
MD5 fafbac192c1ee1f29abb319519d8f7b3
BLAKE2b-256 e9028a82472718b228810dceabfa0215ccb2be725f3cff4658905b94274ebbd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.16.4-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a73d3ef94137cb38e46a8dee17befb7e595abca7b90ec59cd05bf27ae0aa102f
MD5 c0c429cde999ff96961efe06714a8ef1
BLAKE2b-256 849aa80457777f9461f4b41dee700f23f23f5036327110cf1d1af803a9c85fc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.4-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.16.4-cp38-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for klvm_rs-0.16.4-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e5e5e1747fe352786c0718f7265d4322650a36c551a902852c92fd0ee2a1caf9
MD5 f258f8ef9f4d4c5df65e98de777aed73
BLAKE2b-256 9fb1ba4dd11d81b822ae3cd750c4ab02f9be0f9fc4e1904da10a2c6faea72760

See more details on using hashes here.

Provenance

The following attestation bundles were made for klvm_rs-0.16.4-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

0.17.1

6 files

0.17.0

6 files

0.16.5

6 files

This release

0.16.4 This release

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