From dc236e46f343f2adefd226b8a43dd1f2c9712b51 Mon Sep 17 00:00:00 2001 From: Kinflou Date: Mon, 2 Nov 2026 11:41:49 +0800 Subject: [PATCH] doc: comline doc open [FORMAT] and doc --open; pin the generation, comline-rust and comline-typescript revs with the Type/Value columns --- Cargo.lock | 33 +++++-- Cargo.toml | 13 ++- docs/cli.md | 30 +++++- src/cli.rs | 42 ++++++++- src/commands/doc.rs | 110 ++++++++++++++++++++-- src/main.rs | 24 +++-- tests/cli/doc.rs | 132 +++++++++++++++++++++++++++ tests/fixtures/generators/Cargo.lock | 8 +- tests/fixtures/generators/Cargo.toml | 8 +- 9 files changed, 362 insertions(+), 38 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6e02ef0..e5323b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -548,6 +548,7 @@ dependencies = [ "libc", "miette", "notify-debouncer-mini", + "opener", "predicates", "serde", "serde_json", @@ -564,7 +565,7 @@ dependencies = [ [[package]] name = "comline-codegen" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-core", "eyre", @@ -578,7 +579,7 @@ dependencies = [ [[package]] name = "comline-codegen-rust" version = "0.1.0" -source = "git+https://github.com/ComlineProject/comline-rust?rev=bcebb787d35c3f35912e79e5c68b78b3b6f1cafd#bcebb787d35c3f35912e79e5c68b78b3b6f1cafd" +source = "git+https://github.com/ComlineProject/comline-rust?rev=4bbae4cb9473c6f50b35fa120d6627ed19b8c36a#4bbae4cb9473c6f50b35fa120d6627ed19b8c36a" dependencies = [ "comline-codegen", "comline-core", @@ -588,7 +589,7 @@ dependencies = [ [[package]] name = "comline-codegen-typescript" version = "0.1.0" -source = "git+https://github.com/ComlineProject/comline-typescript?rev=8ed8880ac5a5605fecce97e53818256ece7d153f#8ed8880ac5a5605fecce97e53818256ece7d153f" +source = "git+https://github.com/ComlineProject/comline-typescript?rev=f779044be6ae79be44237c0a9fbade5feaed1cec#f779044be6ae79be44237c0a9fbade5feaed1cec" dependencies = [ "comline-codegen", "comline-core", @@ -632,7 +633,7 @@ source = "git+https://github.com/ComlineProject/core?rev=da1157c9264b5743f7b4fa0 [[package]] name = "comline-doc-html" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-codegen", "eyre", @@ -643,7 +644,7 @@ dependencies = [ [[package]] name = "comline-doc-markdown" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-codegen", "eyre", @@ -1788,6 +1789,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +[[package]] +name = "normpath" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b11ce00d2594068e8a27c9146fdc5cf9f3ac38eb42c7cd34d05fea618873ac9f" +dependencies = [ + "windows-sys 0.61.2", +] + [[package]] name = "notify" version = "6.1.1" @@ -1884,6 +1894,17 @@ version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +[[package]] +name = "opener" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c826edd923022c3907477383fc77708fa68807170754fe7be1fd3496c57a1f1c" +dependencies = [ + "normpath", + "url", + "windows-sys 0.61.2", +] + [[package]] name = "owo-colors" version = "4.2.3" @@ -3487,7 +3508,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.61.2", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 3719666..2ec93aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,17 +38,20 @@ comline-core = { git = "https://github.com/ComlineProject/core", rev = "da1157c9 # `comline-codegen`'s types, so the rev below must be byte-identical to the # one *they* pin - Cargo only unifies a git dependency across identical rev # strings, and two copies of `GenRequest` are two incompatible types. -comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } +comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } # The official Markdown and HTML documentation renderers (`comline doc`), # linked in like the official generators. Same generation rev as # `comline-codegen`. -comline-doc-markdown = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } -comline-doc-html = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } -comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "bcebb787d35c3f35912e79e5c68b78b3b6f1cafd", optional = true } -comline-codegen-typescript = { git = "https://github.com/ComlineProject/comline-typescript", rev = "8ed8880ac5a5605fecce97e53818256ece7d153f", optional = true } +comline-doc-markdown = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } +comline-doc-html = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } +comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "4bbae4cb9473c6f50b35fa120d6627ed19b8c36a", optional = true } +comline-codegen-typescript = { git = "https://github.com/ComlineProject/comline-typescript", rev = "f779044be6ae79be44237c0a9fbade5feaed1cec", optional = true } # `comline conformance`: the conformance runner (corpus loading, judging, # profile proofs) and its case format, a public spec. Pinned by git rev. comline-runtime-conformance = { git = "https://github.com/ComlineProject/runtime", rev = "4378c91b74ee1ef1debc800a3daf75c874198e70" } +# `comline doc open` / `--open`: the system's default handler for a file (a +# browser for HTML). Exact pin; no default features (`reveal` pulls in D-Bus). +opener = { version = "=0.9.0", default-features = false } # Runs a `generator = ".wasm"` target (see src/external.rs): no # preopened directories, no environment, no network. Exact pins, bumped # together. diff --git a/docs/cli.md b/docs/cli.md index 080be10..142132e 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -449,7 +449,8 @@ argument matches no stored version (the error lists the versions that exist). ### `comline doc` ``` -comline doc [--out ] [--version ] [--changelog-from ] [--format [,...]] +comline doc [--out ] [--version ] [--changelog-from ] [--format [,...]] [--open] +comline doc open [] [--out ] ``` Write the package's documentation for every version: each release, each dev @@ -494,6 +495,30 @@ version carries the changelog from the version before it, computed by core's | `--version ` | every version | document only this built version (a version string, a commit hash, or `HEAD`), into `///` | | `--changelog-from ` | `[doc] changelog_from` | with `--version`: add what changed from built version `` | | `--format ` | `[doc] formats`, else `markdown` | `markdown`, `html`, `json`, or another id the `[doc] renderer` offers; repeat it or separate with commas | +| `--open` | off | after rendering, open the first format's index (see `comline doc open`); with `--version`, that version's own index | + +A module's summary table lists each unit with its summary, then a **Type** +column (a constant's type, a type alias's target; linked where it can be) and +a **Value** column (a constant's value), each only when some unit in the module +has one. Structs, enums, protocols and the like leave both cells empty. + +#### `comline doc open []` + +Open the generated documentation with the system's default handler: +`//index.html`, `index.md` or `index.json`, for `html`, +`markdown` or `json`. `--out` is read as `comline doc` reads it. + +- With no ``, `html` if it is among `[doc] formats`, else the first + configured format. +- If that file isn't there, the format is rendered first, exactly as + `comline doc --format ` would. If it is, it is opened as it is, + without re-rendering; the command says so in one line and how to refresh + (`comline doc --format `). +- HTML opens in the browser named by `$BROWSER`, else the system's default + (`xdg-open`, `open`, or the Windows shell); Markdown and JSON open in + whatever the system associates with the file. +- It prints the absolute path it opens. With no display, or when nothing + opens, it prints that path and a hint instead, and exits `0`. **Caching.** A built version never changes, so its folder is kept between runs. `//.comline-doc.json` records the key each folder was @@ -545,6 +570,9 @@ comline doc --format html,markdown comline doc --version 0.2.0 --changelog-from 0.1.0 comline doc --format html --out site comline doc --format json +comline doc --open +comline doc open +comline doc open markdown ``` ### `comline conformance` diff --git a/src/cli.rs b/src/cli.rs index 320e697..3b8369b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -137,10 +137,12 @@ Examples: comline doc --format html,markdown comline doc --version 0.2.0 --changelog-from 0.1.0 comline doc --format html --out site - comline doc --format json")] + comline doc --format json + comline doc --open + comline doc open html")] Doc { /// Output directory; default from `[doc] out`, else `docs/api` - #[arg(long, value_name = "DIR")] + #[arg(long, value_name = "DIR", global = true)] out: Option, /// Document only this built version, into `///` @@ -154,6 +156,13 @@ Examples: /// `markdown` (pages), `html` (a static site) or `json` (the model), repeatable or comma-separated; default from `[doc] formats` #[arg(long = "format", value_name = "FORMAT", value_delimiter = ',')] format: Vec, + + /// After rendering, open the first format's index with the system's default handler (HTML honours `$BROWSER`) + #[arg(long)] + open: bool, + + #[command(subcommand)] + command: Option, }, /// Validate the project and write generated code for each configured target @@ -483,3 +492,32 @@ Examples: json: bool, }, } + +/// `comline doc `. +#[derive(Debug, clap::Subcommand)] +pub enum DocCommand { + /// Open the generated documentation with the system's default handler + #[command(long_about = "\ +Open the generated documentation: `//index.html` (HTML), \ +`index.md` (Markdown) or `index.json` (JSON). `--out` is read as in \ +`comline doc`. + +With no FORMAT, `html` is opened when it is among `[doc] formats`, else the \ +first configured format. + +If that file doesn't exist, the format is rendered first (as \ +`comline doc --format FORMAT` would). If it does, it is opened as it is, \ +without re-rendering; run `comline doc` to refresh it. HTML opens in the \ +browser named by `$BROWSER`, else the system's default. With no display, or \ +when nothing opens, the absolute path is printed and the exit status is 0. + +Examples: + comline doc open + comline doc open markdown + comline doc open html --out site")] + Open { + /// `html`, `markdown` or `json`; default `html` if configured, else the first configured format + #[arg(value_name = "FORMAT")] + format: Option, + }, +} diff --git a/src/commands/doc.rs b/src/commands/doc.rs index 6bea177..eb3aeb8 100644 --- a/src/commands/doc.rs +++ b/src/commands/doc.rs @@ -66,6 +66,8 @@ pub struct Flags { pub version: Option, pub changelog_from: Option, pub formats: Vec, + /// `--open`: open the first format's index once rendered. + pub open: bool, } /// The cache manifest's file name, in each format's folder. @@ -99,10 +101,9 @@ struct Version { notes: Vec, } -pub fn run(work_dir: &Path, flags: Flags) -> Result<()> { - ensure_project(work_dir)?; - let cfg = ComlineToml::load(work_dir)?.doc; - +/// Where the docs go and in which formats: the command line, else `[doc]`, +/// else the defaults. +fn out_and_formats(work_dir: &Path, cfg: &Doc, flags: &Flags) -> Result<(PathBuf, Vec)> { let out = match (&flags.out, &cfg.out) { (Some(out), _) => work_dir.join(out), (None, Some(out)) => work_dir.join(out), @@ -122,6 +123,83 @@ pub fn run(work_dir: &Path, flags: Flags) -> Result<()> { "`[doc] formats` is empty: name at least one format" )); } + Ok((out, formats)) +} + +/// The file `comline doc open` opens for a format, under `//`. +fn index_file(format: &str) -> Result<&'static str> { + match format { + "html" => Ok("index.html"), + "markdown" => Ok("index.md"), + "json" => Ok("index.json"), + other => Err(miette!( + "can't open `{other}` documentation: only `html`, `markdown` and `json` have an index to open" + )), + } +} + +/// Opens `path` with the system's default handler, HTML through `$BROWSER` +/// first. It always says which file it is, and when nothing opens (no +/// display, no handler) says so and points at the file instead of failing. +fn open_file(path: &Path, format: &str) { + let path = std::path::absolute(path).unwrap_or_else(|_| path.to_path_buf()); + ui::step(format!("Opening {}", path.display())); + let opened = if format == "html" { + opener::open_browser(&path) + } else { + opener::open(&path) + }; + if let Err(e) = opened { + ui::warn(format!( + "couldn't open it ({e}); open {} yourself{}", + path.display(), + if format == "html" { + ", or set `$BROWSER`" + } else { + "" + } + )); + } +} + +/// `comline doc open [FORMAT]`: open the generated docs, rendering the +/// format first only when its index isn't there. +pub fn open(work_dir: &Path, out: Option, format: Option) -> Result<()> { + ensure_project(work_dir)?; + let cfg = ComlineToml::load(work_dir)?.doc; + let flags = Flags { + out, + ..Flags::default() + }; + let (out, configured) = out_and_formats(work_dir, &cfg, &flags)?; + let format = match format { + Some(format) => format, + None if configured.iter().any(|f| f == "html") => "html".to_string(), + None => configured[0].clone(), + }; + let index = out.join(&format).join(index_file(&format)?); + if index.is_file() { + ui::note(format!( + "Opening the existing {format} docs as they are; run `comline doc --format {format}` to refresh them" + )); + } else { + run( + work_dir, + Flags { + out: flags.out, + formats: vec![format.clone()], + ..Flags::default() + }, + )?; + } + open_file(&index, &format); + Ok(()) +} + +pub fn run(work_dir: &Path, flags: Flags) -> Result<()> { + ensure_project(work_dir)?; + let cfg = ComlineToml::load(work_dir)?.doc; + let (out, formats) = out_and_formats(work_dir, &cfg, &flags)?; let changelog_from = flags.changelog_from.or(cfg.changelog_from.clone()); let renderers = Renderers::new(work_dir, &cfg)?; @@ -138,7 +216,16 @@ pub fn run(work_dir: &Path, flags: Flags) -> Result<()> { &version.schemas, )); } - return document_one(&out, &formats, &renderers, &cfg, version); + let first = document_one(&out, &formats, &renderers, &cfg, version)?; + if flags.open { + // A single version has no site index: open its own. + let (format, dir) = first; + if let Ok(file) = index_file(&format) { + let file = if format == "json" { "model.json" } else { file }; + open_file(&dir.join(file), &format); + } + } + return Ok(()); } if changelog_from.is_some() { ui::warn( @@ -161,6 +248,13 @@ pub fn run(work_dir: &Path, flags: Flags) -> Result<()> { dir.display() )); } + if flags.open { + let format = &formats[0]; + match index_file(format) { + Ok(file) => open_file(&out.join(format).join(file), format), + Err(e) => ui::warn(format!("{e}")), + } + } Ok(()) } @@ -172,7 +266,8 @@ fn document_one( renderers: &Renderers, cfg: &Doc, version: Version, -) -> Result<()> { +) -> Result<(String, PathBuf)> { + let mut first = None; for format in formats { let dir = out.join(format); let files = renderers.render_version(format, cfg, &version)?; @@ -190,8 +285,9 @@ fn document_one( target.display(), files.len() )); + first.get_or_insert((format.clone(), target)); } - Ok(()) + Ok(first.expect("formats is never empty")) } /// Every version, each rendered unless its cached folder still matches, diff --git a/src/main.rs b/src/main.rs index a044cbf..204afe6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -124,15 +124,21 @@ fn run(cli: Cli) -> Result<()> { doc_version, changelog_from, format, - } => commands::doc::run( - &work_dir, - commands::doc::Flags { - out, - version: doc_version, - changelog_from, - formats: format, - }, - ), + open, + command, + } => match command { + Some(cli::DocCommand::Open { format }) => commands::doc::open(&work_dir, out, format), + None => commands::doc::run( + &work_dir, + commands::doc::Flags { + out, + version: doc_version, + changelog_from, + formats: format, + open, + }, + ), + }, Commands::Generate { target, out, diff --git a/tests/cli/doc.rs b/tests/cli/doc.rs index 23e4d14..fabbf43 100644 --- a/tests/cli/doc.rs +++ b/tests/cli/doc.rs @@ -494,3 +494,135 @@ fn dependencies_are_listed_apart_by_reach() { "{api}" ); } + +/// A `$BROWSER` that records what it was asked to open instead of opening it. +#[cfg(unix)] +fn recording_browser(dir: &Path) -> (std::path::PathBuf, std::path::PathBuf) { + use std::os::unix::fs::PermissionsExt; + let log = dir.join("opened.txt"); + let script = dir.join("browser.sh"); + fs::write( + &script, + format!("#!/bin/sh\necho \"$1\" >> '{}'\n", log.display()), + ) + .unwrap(); + fs::set_permissions(&script, fs::Permissions::from_mode(0o755)).unwrap(); + (script, log) +} + +/// What the recording browser was asked to open; it runs detached, so wait for it. +#[cfg(unix)] +fn opened(log: &Path) -> String { + for _ in 0..100 { + if let Ok(text) = fs::read_to_string(log) { + if text.ends_with('\n') { + return text.trim().to_string(); + } + } + std::thread::sleep(std::time::Duration::from_millis(50)); + } + panic!("nothing opened {}", log.display()); +} + +#[cfg(unix)] +#[test] +fn open_renders_a_missing_output_first_and_opens_it() { + let temp = tempfile::tempdir().unwrap(); + let shop = temp.path().join("shop"); + package(&shop, "", API); + fs::write(shop.join("comline.toml"), "[doc]\nformats = [\"html\"]\n").unwrap(); + let (browser, log) = recording_browser(temp.path()); + + let index = shop.join("docs/api/html/index.html"); + comline_cmd() + .current_dir(&shop) + .env("BROWSER", &browser) + .args(["doc", "open"]) + .assert() + .success() + .stderr(predicate::str::contains("Documented 1 version(s) of shop")) + .stderr(predicate::str::contains(index.display().to_string())); + + assert!(index.exists()); + assert_eq!(opened(&log), index.display().to_string()); +} + +#[cfg(unix)] +#[test] +fn open_uses_existing_output_without_rendering_and_respects_out() { + let temp = tempfile::tempdir().unwrap(); + let shop = temp.path().join("shop"); + package(&shop, "", API); + let (browser, log) = recording_browser(temp.path()); + comline_cmd() + .current_dir(&shop) + .args(["doc", "--format", "html", "--out", "site"]) + .assert() + .success(); + let index = shop.join("site/html/index.html"); + // Marks the output, so a re-render would be seen. + fs::write(&index, "").unwrap(); + + // Markdown is configured by default, but HTML is asked for by name. + comline_cmd() + .current_dir(&shop) + .env("BROWSER", &browser) + .args(["doc", "open", "html", "--out", "site"]) + .assert() + .success() + .stderr(predicate::str::contains("as they are")) + .stderr(predicate::str::contains("comline doc --format html")) + .stderr(predicate::str::contains("Documented").not()); + + assert_eq!(read(&index), ""); + assert_eq!(opened(&log), index.display().to_string()); +} + +#[cfg(unix)] +#[test] +fn doc_open_flag_renders_then_opens_the_first_format() { + let temp = tempfile::tempdir().unwrap(); + let shop = temp.path().join("shop"); + package(&shop, "", API); + let (browser, log) = recording_browser(temp.path()); + comline_cmd() + .current_dir(&shop) + .env("BROWSER", &browser) + .args(["doc", "--format", "html,markdown", "--open"]) + .assert() + .success(); + assert_eq!( + opened(&log), + shop.join("docs/api/html/index.html").display().to_string() + ); +} + +#[test] +fn open_names_the_file_and_succeeds_when_nothing_can_open_it() { + let temp = tempfile::tempdir().unwrap(); + let shop = temp.path().join("shop"); + package(&shop, "", API); + comline_cmd() + .current_dir(&shop) + .env("BROWSER", temp.path().join("no-such-browser")) + .args(["doc", "open", "html"]) + .assert() + .success() + .stderr(predicate::str::contains("index.html")) + .stderr(predicate::str::contains("$BROWSER")); +} + +#[test] +fn open_rejects_a_format_it_has_no_index_for() { + let temp = tempfile::tempdir().unwrap(); + let shop = temp.path().join("shop"); + package(&shop, "", API); + comline_cmd() + .current_dir(&shop) + .args(["doc", "open", "pdf"]) + .assert() + .failure() + .stderr(predicate::str::contains( + "only `html`, `markdown` and `json`", + )); +} diff --git a/tests/fixtures/generators/Cargo.lock b/tests/fixtures/generators/Cargo.lock index a8fd99c..44c8539 100644 --- a/tests/fixtures/generators/Cargo.lock +++ b/tests/fixtures/generators/Cargo.lock @@ -79,7 +79,7 @@ dependencies = [ [[package]] name = "comline-codegen" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-core", "eyre", @@ -93,7 +93,7 @@ dependencies = [ [[package]] name = "comline-codegen-rust" version = "0.1.0" -source = "git+https://github.com/ComlineProject/comline-rust?rev=bcebb787d35c3f35912e79e5c68b78b3b6f1cafd#bcebb787d35c3f35912e79e5c68b78b3b6f1cafd" +source = "git+https://github.com/ComlineProject/comline-rust?rev=4bbae4cb9473c6f50b35fa120d6627ed19b8c36a#4bbae4cb9473c6f50b35fa120d6627ed19b8c36a" dependencies = [ "comline-codegen", "comline-core", @@ -125,7 +125,7 @@ source = "git+https://github.com/ComlineProject/core?rev=da1157c9264b5743f7b4fa0 [[package]] name = "comline-doc-html" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-codegen", "eyre", @@ -136,7 +136,7 @@ dependencies = [ [[package]] name = "comline-doc-markdown" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=4a42cc1c14ace568f3589643696e4526a6364b0f#4a42cc1c14ace568f3589643696e4526a6364b0f" +source = "git+https://github.com/ComlineProject/generation?rev=c634f01441dbd28a4607fe3b49ff2b54a0d81395#c634f01441dbd28a4607fe3b49ff2b54a0d81395" dependencies = [ "comline-codegen", "eyre", diff --git a/tests/fixtures/generators/Cargo.toml b/tests/fixtures/generators/Cargo.toml index 7e21927..cf82507 100644 --- a/tests/fixtures/generators/Cargo.toml +++ b/tests/fixtures/generators/Cargo.toml @@ -12,7 +12,7 @@ publish = false [dependencies] # The same revs the CLI pins, so the real generator's output is comparable # byte for byte with the CLI's built-in one. -comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } -comline-doc-markdown = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } -comline-doc-html = { git = "https://github.com/ComlineProject/generation", rev = "4a42cc1c14ace568f3589643696e4526a6364b0f" } -comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "bcebb787d35c3f35912e79e5c68b78b3b6f1cafd" } +comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } +comline-doc-markdown = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } +comline-doc-html = { git = "https://github.com/ComlineProject/generation", rev = "c634f01441dbd28a4607fe3b49ff2b54a0d81395" } +comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "4bbae4cb9473c6f50b35fa120d6627ed19b8c36a" }