CultLib/packages/cultnet-rs/Cargo.toml

43 lines
1 KiB
TOML
Raw Normal View History

[package]
name = "cultnet-rs"
version = "0.1.0"
edition = "2024"
publish = false
license = "MIT"
description = "CultNet-style typed MessagePack messaging, direct-pipe framing, security helpers, and CultCache replication for Rust runtimes."
[lib]
name = "cultnet_rs"
path = "src/lib.rs"
[dependencies]
aes-gcm = "0.10"
anyhow = "1"
base64 = "0.22"
chrono = { version = "0.4", features = ["serde"] }
cultcache-rs = { path = "../cultcache-rs" }
Return the Idunn and Odin authority contracts to CultLib The standalone GameCult/cultnet-rs holds six modules CultLib never received: runtime_authority_contracts, service_identity, provider_health_contracts, idunn_deployment_brake, idunn_lifecycle_brake, and snapshot_query. They own Idunn Expected incarnations, dual-proved runtime activation, process write leases, service-signed presence health, and Odin topology correlation -- the wire contracts every GameCult daemon must agree on. They belong here because wire parity conformance lives here and nothing outside it is checked for cross-runtime agreement. Held as source to be copied, this contract already forked: Ghostlight vendors it at e542225 while its own authority map names f4ab237, and the two disagree on whether Present may coexist with a disagreement. One copy makes them exclusive; the other separates presence from readiness and gates through into_undisputed_present. A single owner under the parity harness is the fix; re-vendoring is not. None of the six touch RUDP, so they land without disturbing the protocol core. rudp.rs remains genuinely forked -- 140 hunks between the lineages, with reliable windows and ACK horizons on this side and bounded session memory, exact acknowledgement receipts, and hostile rollover rejection on the other. That reconciliation needs the cross-runtime interop harness and is not attempted here. Adds ed25519-dalek, zeroize, and the Windows Foundation/Cryptography features the credential paths require. 96 tests pass. The two rudp_server_hub failures are pre-existing on this base and reproduce at 230ace6 untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-03 22:56:41 +02:00
ed25519-dalek = "2.2"
hmac = "0.12"
rand = "0.9"
Add the media FEC codec, video parity v3 and audio parity records to cultnet-rs The codec owns the erasure math for both ends: protect_video_frame and protect_audio_block on the producer, recover_video_block and recover_audio_block on the consumer. Each block is systematic Reed-Solomon over GF(2^8) (reed-solomon-erasure 6, default features), named on every parity record by the scheme id rs-gf256-v1. Any <= m erasures recover exactly; more report BeyondRepair. Video frames split into ceil(n/16) near-equal blocks with m = max(2, ceil(k/4)); audio is 4+2. A frame's records come back in send order, rotating one record from each block so a burst lands as one loss per block. Deleted first: gamecult.media_video_parity_shard.v2 and its XOR-stripe validator, and the reliable "audio" channel (profile entry, send-options arm, constant, tests). Audio now rides "media" with parity. Added: gamecult.media_video_parity_shard.v3 (block geometry, scheme id, shard length), gamecult.media_audio_parity_shard.v1, the AudioParity wire variant with validation, and the parity record key now names the block. Every shard is bounded at MEDIA_FEC_MAX_SHARD_PAYLOAD_BYTES (720) so its wrapped record fits MEDIA_FEC_MAX_WIRE_BYTES (1431), measured with identifiers of up to 32 bytes. Tests pin: exhaustive recovery for every shipped (k, m) and 4+2, m+1 refusal, known-answer parity bytes for both paths, the datagram bound on every record kind, send order, deadline carriage and decoder validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:08:54 +02:00
reed-solomon-erasure = "6"
rmp-serde = "1.3"
rmpv = { version = "1.3", features = ["with-serde"] }
serde = { version = "1", features = ["derive"] }
serde_bytes = "0.11"
serde_json = "1"
sha2 = "0.10"
Return the Idunn and Odin authority contracts to CultLib The standalone GameCult/cultnet-rs holds six modules CultLib never received: runtime_authority_contracts, service_identity, provider_health_contracts, idunn_deployment_brake, idunn_lifecycle_brake, and snapshot_query. They own Idunn Expected incarnations, dual-proved runtime activation, process write leases, service-signed presence health, and Odin topology correlation -- the wire contracts every GameCult daemon must agree on. They belong here because wire parity conformance lives here and nothing outside it is checked for cross-runtime agreement. Held as source to be copied, this contract already forked: Ghostlight vendors it at e542225 while its own authority map names f4ab237, and the two disagree on whether Present may coexist with a disagreement. One copy makes them exclusive; the other separates presence from readiness and gates through into_undisputed_present. A single owner under the parity harness is the fix; re-vendoring is not. None of the six touch RUDP, so they land without disturbing the protocol core. rudp.rs remains genuinely forked -- 140 hunks between the lineages, with reliable windows and ACK horizons on this side and bounded session memory, exact acknowledgement receipts, and hostile rollover rejection on the other. That reconciliation needs the cross-runtime interop harness and is not attempted here. Adds ed25519-dalek, zeroize, and the Windows Foundation/Cryptography features the credential paths require. 96 tests pass. The two rudp_server_hub failures are pre-existing on this base and reproduce at 230ace6 untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-03 22:56:41 +02:00
zeroize = "1"
socket2 = "0.5"
uuid = { version = "1", features = ["v4"] }
Return the Idunn and Odin authority contracts to CultLib The standalone GameCult/cultnet-rs holds six modules CultLib never received: runtime_authority_contracts, service_identity, provider_health_contracts, idunn_deployment_brake, idunn_lifecycle_brake, and snapshot_query. They own Idunn Expected incarnations, dual-proved runtime activation, process write leases, service-signed presence health, and Odin topology correlation -- the wire contracts every GameCult daemon must agree on. They belong here because wire parity conformance lives here and nothing outside it is checked for cross-runtime agreement. Held as source to be copied, this contract already forked: Ghostlight vendors it at e542225 while its own authority map names f4ab237, and the two disagree on whether Present may coexist with a disagreement. One copy makes them exclusive; the other separates presence from readiness and gates through into_undisputed_present. A single owner under the parity harness is the fix; re-vendoring is not. None of the six touch RUDP, so they land without disturbing the protocol core. rudp.rs remains genuinely forked -- 140 hunks between the lineages, with reliable windows and ACK horizons on this side and bounded session memory, exact acknowledgement receipts, and hostile rollover rejection on the other. That reconciliation needs the cross-runtime interop harness and is not attempted here. Adds ed25519-dalek, zeroize, and the Windows Foundation/Cryptography features the credential paths require. 96 tests pass. The two rudp_server_hub failures are pre-existing on this base and reproduce at 230ace6 untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-03 22:56:41 +02:00
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Security_Cryptography"] }
[dev-dependencies]
pretty_assertions = "1.4"
tempfile = "3"
[[example]]
name = "cultnet_impair"
path = "examples/cultnet_impair/main.rs"
test = true