21 releases (11 breaking)

new 0.12.1 Jan 14, 2025
0.12.0 Sep 18, 2024
0.11.1 Jun 20, 2024
0.10.0 Mar 27, 2024
0.1.0 Jan 6, 2022

#12 in #stark-net

Download history 4955/week @ 2024-09-24 5786/week @ 2024-10-01 5595/week @ 2024-10-08 4898/week @ 2024-10-15 5754/week @ 2024-10-22 5066/week @ 2024-10-29 4584/week @ 2024-11-05 5840/week @ 2024-11-12 5753/week @ 2024-11-19 5709/week @ 2024-11-26 9494/week @ 2024-12-03 10850/week @ 2024-12-10 9407/week @ 2024-12-17 5096/week @ 2024-12-24 7265/week @ 2024-12-31 6339/week @ 2025-01-07

29,884 downloads per month
Used in 43 crates (18 directly)

MIT/Apache

650KB
15K SLoC

Starknet data types

// TODO: add starknet-core documentation

Benchmark

These results were generated on the author's machine with Apple M3 Max running macOS 14.5.

For instructions on running the benchmarks yourself, check out this page.

Native

cairo0_class_hash       time:   [9.1665 ms 9.1690 ms 9.1718 ms]
sierra_class_hash       time:   [6.6931 ms 6.6944 ms 6.6958 ms]

WebAssembly

(Results are only provided for wasmtime here. Check out the benchmark page for running the benchmark on other runtimes).

Runtime version:

$ wasmtime --version
wasmtime-cli 21.0.1 (cedf9aa0f 2024-05-22)

wasmtime results:

cairo0_class_hash       time:   [36.515 ms 36.526 ms 36.538 ms]
sierra_class_hash       time:   [22.550 ms 22.557 ms 22.567 ms]

lib.rs:

Core data types and utilities for Starknet.

Dependencies

~10MB
~188K SLoC