From bb0a08a42751f6f51c7b29a2e2ab875c98250f43 Mon Sep 17 00:00:00 2001 From: nobody Date: Fri, 12 Dec 2025 21:11:07 -0800 Subject: [PATCH] feat: prepare for publishing rust crate --- research/Cargo.lock | 70 ++++++++++++++++++++++++++++++++++++++++++--- rust/Cargo.toml | 17 ++++++----- 2 files changed, 76 insertions(+), 11 deletions(-) diff --git a/research/Cargo.lock b/research/Cargo.lock index 20b1bdf..a29f385 100644 --- a/research/Cargo.lock +++ b/research/Cargo.lock @@ -214,6 +214,18 @@ dependencies = [ "wasi", ] +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if 1.0.1", + "libc", + "r-efi", + "wasip2", +] + [[package]] name = "gmp-mpfr-sys" version = "1.6.5" @@ -413,9 +425,9 @@ checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" [[package]] name = "peoplesgrocers-lseq" -version = "1.0.0" +version = "0.99.0" dependencies = [ - "rand 0.8.5", + "rand 0.9.2", ] [[package]] @@ -485,6 +497,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "rand" version = "0.3.23" @@ -515,10 +533,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", + "rand_chacha 0.3.1", "rand_core 0.6.4", ] +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -529,6 +557,16 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", +] + [[package]] name = "rand_core" version = "0.3.1" @@ -550,7 +588,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.16", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.4", ] [[package]] @@ -754,6 +801,15 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasip2" +version = "1.0.1+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.100" @@ -926,6 +982,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +[[package]] +name = "wit-bindgen" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" + [[package]] name = "zerocopy" version = "0.8.26" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index f8bd08d..1367636 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,12 +1,15 @@ [package] name = "peoplesgrocers-lseq" -version = "1.0.0" -edition = "2021" +version = "0.99.0" +edition = "2024" +authors = ["Karl ", "nobody "] +homepage = "https://peoplesgrocers.com/code/oss/lseq" +repository = "https://peoplesgrocers.com/code/oss/lseq" +documentation = "https://docs.rs/peoplesgrocers-lseq" +license = "AGPL-3.0" description = "L-SEQ algorithm implementation for fractional indexing and list CRDTs" -keywords = ["lseq", "crdt", "fractional-indexing", "sequence", "collaborative-editing"] +keywords = ["lseq", "crdt", "fractional-indexing", "sequence", "multiplayer"] categories = ["data-structures", "algorithms"] -license = "MIT" -repository = "https://github.com/peoplesgrocers/lseq" readme = "README.md" [features] @@ -14,8 +17,8 @@ default = [] serde = ["dep:serde"] [dependencies] -rand = "0.8" +rand = "0.9" serde = { version = "1.0", features = ["derive"], optional = true } [dev-dependencies] -rand = { version = "0.8", features = ["small_rng"] } \ No newline at end of file +rand = { version = "0.9", features = ["small_rng"] }