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.0.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.0-cp38-abi3-win_amd64.whl (393.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

klvm_rs-0.17.0-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.0-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.0-cp38-abi3-macosx_13_0_x86_64.whl (446.6 kB view details)

Uploaded CPython 3.8+macOS 13.0+ x86-64

klvm_rs-0.17.0-cp38-abi3-macosx_13_0_arm64.whl (422.0 kB view details)

Uploaded CPython 3.8+macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: klvm_rs-0.17.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b4c43efabdee6db556f42e3e1cefd08cb25e517fadd3f20929573124b798032d
MD5 8ad9d11e6d3976d17fdac1d9616a7609
BLAKE2b-256 4c03f43cda14b3a9cfd9eb8dde9992a2924b162136d721f8d7228a707a9893c1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: klvm_rs-0.17.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 393.9 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.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3b5cadf46bf72af0c11d8560af4a19d08c37c2954d14980bc30097e06917be97
MD5 705dec6cfe4f814f058662dd5318e37b
BLAKE2b-256 6efee4998046b8a92e8e5306bddfec2330b2a7abcf1f2225e4d6f39d90c33b30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.17.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7649abbbfe30359f4eaae06f47534a773c749f418df019e24e31f184d58ee162
MD5 2d7f1f496f71d0219b7fa99e3f41f86f
BLAKE2b-256 7fb0eec56ff8a7eb03ec3aeae83065d7d36019b7be8c5b7ed8ea22c9e14ec467

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.17.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1df0ead337a618b249bbea48ddc2d3d77223eef0b74e7c05bd92d274ea4074d6
MD5 90ea937cfaa1684d2d61be2f05a3fd40
BLAKE2b-256 1f24e4c0ef45dea28929f79b3e2cb156a095fd66ec8f463ac7b25369df1be33b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klvm_rs-0.17.0-cp38-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d2ca4af68eebb047980c5e84fffc7799ed3b202833d5bf24a5cbf8de6852a0c2
MD5 7d8fb0dbec93a068e573d90edbd6795f
BLAKE2b-256 cd81b2929ac2f0f8fd801ebfee54b688442e45e1d3098b2f91043c848b311779

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for klvm_rs-0.17.0-cp38-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c763b4785af94b93712503bb2eb6f95cf7b8ae69fc42f71856b5749d9ae60e85
MD5 a863ca4f445bd5bf734c53632b3fa32c
BLAKE2b-256 92a8d9cdc4e3154299511052615b4a04c27f1c5ee3e19f53bf51973053521b7b

See more details on using hashes here.

Provenance

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

This release

0.17.0 This release

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