Skip to content

Introduce public rust library api#69

Open
HudsonGraeme wants to merge 4 commits into
RaoFoundation:stagingfrom
inference-labs-inc:introduce/public-rust-library-api
Open

Introduce public rust library api#69
HudsonGraeme wants to merge 4 commits into
RaoFoundation:stagingfrom
inference-labs-inc:introduce/public-rust-library-api

Conversation

@HudsonGraeme

Copy link
Copy Markdown
  • Allows bittensor-drand to be used directly as a rust crate

Expose core drand functions (generate_commit, encrypt_and_compress,
decrypt_and_decompress) as public Rust API by adding rlib crate-type
and re-exporting from lib.rs. Feature-gate pyo3, ffi, and ML-KEM
dependencies behind extension-module (default), allowing
default-features = false for pure Rust library consumers.
Relax exact pin =0.1.3 to ^0.1.3 so downstream crates using sp-core
(which requires w3f-bls 0.1.9) can resolve a single version.
Curated re-exports at crate root provide the public API surface.
Private module prevents unintended access to internal constants.
@basfroman

Copy link
Copy Markdown
Collaborator

Hey @HudsonGraeme please update your branch with staging and request review. Thank you for contribution.

@HudsonGraeme HudsonGraeme changed the base branch from main to staging June 18, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants