Commit 89bb107c87
Unregistered key
Layout: unified · split
Cargo.lock +6 −6
| @@ -586,9 +586,9 @@ dependencies = [ | |||
| 586 | 586 | ||
| 587 | [[package]] | 587 | [[package]] |
| 588 | name = "crossbeam-channel" | 588 | name = "crossbeam-channel" |
| 589 | version = "0.5.7" | 589 | version = "0.5.8" |
| 590 | source = "registry+https://github.com/rust-lang/crates.io-index" | 590 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 591 | checksum = "cf2b3e8478797446514c91ef04bafcb59faba183e621ad488df88983cc14128c" | 591 | checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" |
| 592 | dependencies = [ | 592 | dependencies = [ |
| 593 | "cfg-if", | 593 | "cfg-if", |
| 594 | "crossbeam-utils", | 594 | "crossbeam-utils", |
| @@ -1409,9 +1409,9 @@ dependencies = [ | |||
| 1409 | 1409 | ||
| 1410 | [[package]] | 1410 | [[package]] |
| 1411 | name = "hermit-abi" | 1411 | name = "hermit-abi" |
| 1412 | version = "0.3.1" | 1412 | version = "0.3.2" |
| 1413 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1413 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1414 | checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" | 1414 | checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" |
| 1415 | 1415 | ||
| 1416 | [[package]] | 1416 | [[package]] |
| 1417 | name = "hkdf" | 1417 | name = "hkdf" |
| @@ -1678,7 +1678,7 @@ version = "1.0.9" | |||
| 1678 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1678 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1679 | checksum = "09270fd4fa1111bc614ed2246c7ef56239a3063d5be0d1ec3b589c505d400aeb" | 1679 | checksum = "09270fd4fa1111bc614ed2246c7ef56239a3063d5be0d1ec3b589c505d400aeb" |
| 1680 | dependencies = [ | 1680 | dependencies = [ |
| 1681 | "hermit-abi 0.3.1", | 1681 | "hermit-abi 0.3.2", |
| 1682 | "libc", | 1682 | "libc", |
| 1683 | "windows-sys 0.45.0", | 1683 | "windows-sys 0.45.0", |
| 1684 | ] | 1684 | ] |
| @@ -1695,7 +1695,7 @@ version = "0.4.5" | |||
| 1695 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1695 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1696 | checksum = "8687c819457e979cc940d09cb16e42a1bf70aa6b60a549de6d3a62a0ee90c69e" | 1696 | checksum = "8687c819457e979cc940d09cb16e42a1bf70aa6b60a549de6d3a62a0ee90c69e" |
| 1697 | dependencies = [ | 1697 | dependencies = [ |
| 1698 | "hermit-abi 0.3.1", | 1698 | "hermit-abi 0.3.2", |
| 1699 | "io-lifetimes", | 1699 | "io-lifetimes", |
| 1700 | "rustix 0.36.11", | 1700 | "rustix 0.36.11", |
| 1701 | "windows-sys 0.45.0", | 1701 | "windows-sys 0.45.0", |
build.rs +5 −2
| @@ -19,8 +19,11 @@ fn main() -> Result<(), Box<dyn Error>> { | |||
| 19 | let iamb_1 = convert(IAMB_1_MD, "IAMB", 1); | 19 | let iamb_1 = convert(IAMB_1_MD, "IAMB", 1); |
| 20 | let iamb_5 = convert(IAMB_5_MD, "IAMB", 5); | 20 | let iamb_5 = convert(IAMB_5_MD, "IAMB", 5); |
| 21 | 21 | ||
| 22 | fs::write(PathBuf::from_iter(["docs", "iamb.1"]), iamb_1.as_bytes())?; | 22 | let out_dir = std::env::var("OUT_DIR"); |
| 23 | fs::write(PathBuf::from_iter(["docs", "iamb.5"]), iamb_5.as_bytes())?; | 23 | let out_dir = out_dir.as_deref().unwrap_or("docs"); |
| 24 | |||
| 25 | fs::write(PathBuf::from_iter([out_dir, "iamb.1"]), iamb_1.as_bytes())?; | ||
| 26 | fs::write(PathBuf::from_iter([out_dir, "iamb.5"]), iamb_5.as_bytes())?; | ||
| 24 | 27 | ||
| 25 | Ok(()) | 28 | Ok(()) |
| 26 | } | 29 | } |