From 418e8b9b70ad4b5d9e666755bf3c58190fa45fdb Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Fri, 24 Apr 2026 16:03:33 +0200 Subject: [PATCH] Into workspace. --- rust/Cargo.lock | 72 +++++++++++++++++++ rust/Cargo.toml | 23 ++++++ rust/README.md | 2 + .../Cargo.toml | 4 +- 4 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 rust/Cargo.lock create mode 100644 rust/Cargo.toml create mode 100644 rust/README.md diff --git a/rust/Cargo.lock b/rust/Cargo.lock new file mode 100644 index 0000000..c810b96 --- /dev/null +++ b/rust/Cargo.lock @@ -0,0 +1,72 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "logos-blockchain-circuits-types" +version = "0.1.0" +dependencies = [ + "libc", + "thiserror", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 0000000..3f9dff4 --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,23 @@ +[workspace.package] +categories = ["cryptography", "external-ffi-bindings"] +description = "Rust bindings for the Logos Blockchain Circuits, providing a safe and efficient interface for interacting with the underlying cryptographic circuits." +edition = "2024" +keywords = ["blockchain", "privacy"] +license = "MIT or Apache-2.0" +readme = "README.md" +repository = "https://github.com/logos-blockchain/logos-blockchain-circuits" +version = "0.1.0" + +[workspace] +members = [ + "logos-blockchain-circuits-types" +] +resolver = "3" + +[workspace.dependencies] +# Internal +lbc-types = { path = "logos-blockchain-circuits-types" } + +# External +libc = "0.2.185" +thiserror = "2.0.18" diff --git a/rust/README.md b/rust/README.md new file mode 100644 index 0000000..2bdf187 --- /dev/null +++ b/rust/README.md @@ -0,0 +1,2 @@ +# Logos Blockchain Circuits – Rust +This directory contains the Rust FFI to interact with the Logos Blockchain Circuits. diff --git a/rust/logos-blockchain-circuits-types/Cargo.toml b/rust/logos-blockchain-circuits-types/Cargo.toml index b13af88..84fd525 100644 --- a/rust/logos-blockchain-circuits-types/Cargo.toml +++ b/rust/logos-blockchain-circuits-types/Cargo.toml @@ -4,5 +4,5 @@ version = "0.1.0" edition = "2024" [dependencies] -libc = "0.2.185" -thiserror = "2.0.18" +libc = { workspace = true } +thiserror = { workspace = true }