Publish an alpha version of the Monero crate (#123)

* Label the version as an alpha

* Add versions to Cargo.tomls

* Update to Zeroize 1.5

* Drop patch versions from monero-serai Cargo.toml

* Add a repository field

* Move generators to OUT_DIR

IIRC, I didn't do this originally as it constantly re-generated them. 
Unfortunately, since cargo is complaining about .generators, we have to.

* Remove Timelock::fee_weight

Transaction::fee_weight's has a comment, "Assumes Timelock::None since 
this library won't let you create a TX with a timelock". Accordingly, 
this is dead code.
This commit is contained in:
Luke Parker
2022-09-29 01:24:33 -05:00
committed by GitHub
parent 49749d96a0
commit 8b0f0a3713
17 changed files with 43 additions and 42 deletions

View File

@@ -1,7 +1,8 @@
use std::{
io::Write,
env,
path::Path,
fs::{File, DirBuilder, remove_file},
fs::{File, remove_file},
};
use dalek_ff_group::EdwardsPoint;
@@ -33,8 +34,7 @@ fn generators(prefix: &'static str, path: &str) {
let mut H_str = "".to_string();
serialize(&mut H_str, &generators.H);
DirBuilder::new().recursive(true).create(".generators").unwrap();
let path = Path::new(".generators").join(path);
let path = Path::new(&env::var("OUT_DIR").unwrap()).join(path);
let _ = remove_file(&path);
File::create(&path)
.unwrap()
@@ -60,7 +60,6 @@ fn generators(prefix: &'static str, path: &str) {
}
fn main() {
// For some reason, filtering off .generators does not work. This prevents re-building overall
println!("cargo:rerun-if-changed=build.rs");
generators("bulletproof", "generators.rs");