weave-weft · crate
Source declarations, signatures and documentation for crate.
Reviewed implementation boundary: Producer signatures must be computed over the exact manifest before validate/from_bytes or publication; an empty signature is rejected. Reader interfaces do not establish constant-memory storage, and chain reference metadata alone does not submit or prove anchoring. See /libraries/weft/publish.
Source: sigil/weave/models/weft/src/lib.rs. SHA-256: d5531eaf83134cb13bb094b72213b67b72bfeb8afccdceb7917abc52a0328c6e.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
chunk
pub mod chunk;Source line: 17.
dht
pub mod dht;Source line: 18.
discovery
pub mod discovery;Source line: 19.
fetch
pub mod fetch;Source line: 21.
live
#[cfg(feature = "dht")]
pub mod live;Source line: 23.
local
pub mod local;Source line: 24.
manifest
pub mod manifest;Source line: 25.
tree
pub mod tree;Source line: 26.
pub use error::{Result, WeftError};
pub use error::{Result, WeftError};Source line: 32.
::WeftHash
A 32-byte BLAKE3-derived Weft hash.
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct WeftHash([u8; 32]);Source line: 36.
::WeftHash::from_bytes
Construct a hash from exactly 32 bytes.
pub fn from_bytes(bytes: [u8; 32]) -> Self;Source line: 40.
::WeftHash::from_hex
Parse a lowercase or uppercase hex hash, with an optional 0x prefix.
pub fn from_hex(value: &str) -> Result<Self>;Source line: 45.
::WeftHash::as_bytes
Borrow the hash bytes.
pub fn as_bytes(&self) -> &[u8; 32];Source line: 61.
::WeftHash::to_hex
Return the lowercase hex representation.
pub fn to_hex(&self) -> String;Source line: 66.
pub use dht::{DhtKv, InMemoryDhtKv, WeftDhtStore};
pub use dht::{DhtKv, InMemoryDhtKv, WeftDhtStore};Source line: 128.
pub use discovery::{
AdvertisementScope, AvailabilityAdvertisement, AvailabilitySet, DiscoveryPublisher, InMemoryDiscovery, PeerId, WEFT_AVAILABILITY_PROTOCOL, };
pub use discovery::{
AdvertisementScope, AvailabilityAdvertisement, AvailabilitySet, DiscoveryPublisher,
InMemoryDiscovery, PeerId, WEFT_AVAILABILITY_PROTOCOL,
};Source line: 129.
pub use live::{
connect_primary_trio, connect_with_bootstrap, store_from_handle, LiveWeftDht, PRIMARY_TRIO_DNS4, };
#[cfg(feature = "dht")]
pub use live::{
connect_primary_trio, connect_with_bootstrap, store_from_handle, LiveWeftDht, PRIMARY_TRIO_DNS4,
};Source line: 135.