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

#44 in #starknet

Download history 3888/week @ 2024-07-20 6012/week @ 2024-07-27 6275/week @ 2024-08-03 6846/week @ 2024-08-10 4746/week @ 2024-08-17 4018/week @ 2024-08-24 5520/week @ 2024-08-31 4534/week @ 2024-09-07 5353/week @ 2024-09-14 5630/week @ 2024-09-21 5085/week @ 2024-09-28 6141/week @ 2024-10-05 4908/week @ 2024-10-12 5588/week @ 2024-10-19 5122/week @ 2024-10-26 4216/week @ 2024-11-02

20,315 downloads per month
Used in 42 crates (17 directly)

MIT/Apache

510KB
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

~9.5MB
~173K SLoC