20 releases (11 breaking)

0.12.0 Sep 18, 2024
0.11.1 Jun 20, 2024
0.10.0 Mar 27, 2024
0.8.1 Dec 26, 2023
0.1.0 Jan 6, 2022

#40 in #starknet

Download history 4752/week @ 2024-07-02 2714/week @ 2024-07-09 3422/week @ 2024-07-16 4343/week @ 2024-07-23 6708/week @ 2024-07-30 5900/week @ 2024-08-06 6749/week @ 2024-08-13 4208/week @ 2024-08-20 4732/week @ 2024-08-27 5229/week @ 2024-09-03 4872/week @ 2024-09-10 5537/week @ 2024-09-17 4955/week @ 2024-09-24 5786/week @ 2024-10-01 5595/week @ 2024-10-08 4746/week @ 2024-10-15

22,028 downloads per month
Used in 42 crates (17 directly)

MIT/Apache

505KB
11K 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

~9MB
~169K SLoC