Expose std_shims::io on core

The `io::Write` trait is somewhat worthless, being implemented for nothing, yet
`Read` remains fully functional. This also allows using its polyfills _without_
requiring `alloc`.

Opportunity taken to make `schnorr-signatures` not require `alloc`.

This will require a version bump before being published due to newly requiring
the `alloc` feature be specified to maintain pre-existing behavior.

Enables resolving https://github.com/monero-oxide/monero-oxide/issues/48.
This commit is contained in:
Luke Parker
2025-09-15 21:21:30 -04:00
parent 5ea087d177
commit 55e845fe12
17 changed files with 168 additions and 78 deletions

View File

@@ -1,5 +1,7 @@
#![no_std]
pub use std_shims;
pub use flexible_transcript;
pub use dalek_ff_group;
@@ -11,18 +13,20 @@ pub use prime_field;
pub use short_weierstrass;
pub use secq256k1;
pub use embedwards25519;
/*
pub use modular_frost;
pub use frost_schnorrkel;
*/
pub use schnorr_signatures;
#[cfg(feature = "alloc")]
pub mod alloc {
pub use multiexp;
pub use schnorr_signatures;
pub use dkg;
pub use dkg_evrf;
pub use bitcoin_serai;
/*
pub use modular_frost;
pub use frost_schnorrkel;
*/
}