diff options
Diffstat (limited to '')
-rw-r--r-- | generate/Cargo.toml | 11 | ||||
-rw-r--r-- | generate/src/main.rs (renamed from build.rs) | 10 |
2 files changed, 19 insertions, 2 deletions
diff --git a/generate/Cargo.toml b/generate/Cargo.toml new file mode 100644 index 0000000..7a2cf63 --- /dev/null +++ b/generate/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "markdown-generate" +version = "0.0.0" +authors = ["Titus Wormer <tituswormer@gmail.com>"] +edition = "2018" +publish = false + +[dependencies] +regex = "1" +reqwest = "0.11" +tokio = { version = "1", features = ["full"] } diff --git a/build.rs b/generate/src/main.rs index 658cb0a..9f0d14b 100644 --- a/build.rs +++ b/generate/src/main.rs @@ -1,3 +1,9 @@ +// To regenerate, run the following from the repository root: +// +// ```sh +// cargo run --manifest-path generate/Cargo.toml +// ``` + use regex::Regex; use std::fs; @@ -63,7 +69,7 @@ async fn commonmark() { let doc = format!( "//! `CommonMark` test suite. -// > 👉 **Important**: this module is generated by `build.rs`. +// > 👉 **Important**: this module is generated by `generate/src/main.rs`. // > It is generate from the latest CommonMark website. use markdown::{{to_html_with_options, CompileOptions, Options}}; @@ -130,7 +136,7 @@ async fn punctuation() { /// List of characters that are considered punctuation. /// -/// > 👉 **Important**: this module is generated by `build.rs`. +/// > 👉 **Important**: this module is generated by `generate/src/main.rs`. /// > It is generate from the latest Unicode data. /// /// Rust does not contain an `is_punctuation` method on `char`, while it does |