Into workspace.

This commit is contained in:
Alejandro Cabeza Romero 2026-04-24 16:03:33 +02:00
parent 220707d9ee
commit 418e8b9b70
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
4 changed files with 99 additions and 2 deletions

72
rust/Cargo.lock generated Normal file
View File

@ -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"

23
rust/Cargo.toml Normal file
View File

@ -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"

2
rust/README.md Normal file
View File

@ -0,0 +1,2 @@
# Logos Blockchain Circuits Rust
This directory contains the Rust FFI to interact with the Logos Blockchain Circuits.

View File

@ -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 }