diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e790c66e8e9..d5d04efc9a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,16 +67,16 @@ jobs: brew install tree openssl gnu-sed - name: "cargo check default features" if: startsWith(matrix.os, 'windows') - run: cargo check --all --bins --examples + run: cargo check --workspace --bins --examples - uses: taiki-e/install-action@v2 with: tool: nextest - name: "Test (nextest)" env: GIX_TEST_CREATE_ARCHIVES_EVEN_ON_CI: 1 - run: cargo nextest run --all --no-fail-fast + run: cargo nextest run --workspace --no-fail-fast - name: Doctest - run: cargo test --doc + run: cargo test --workspace --doc --no-fail-fast - name: Check that tracked archives are up to date run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive. diff --git a/gix-merge/src/blob/builtin_driver/text/mod.rs b/gix-merge/src/blob/builtin_driver/text/mod.rs index a3b38048abd..0252f423c40 100644 --- a/gix-merge/src/blob/builtin_driver/text/mod.rs +++ b/gix-merge/src/blob/builtin_driver/text/mod.rs @@ -8,20 +8,21 @@ pub enum ConflictStyle { /// Only show the zealously minified conflicting lines of the local changes and the incoming (other) changes, /// hiding the base version entirely. /// - /// ``` + /// ```text /// line1-changed-by-both /// <<<<<<< local /// line2-to-be-changed-in-incoming /// ======= /// line2-changed /// >>>>>>> incoming - ///``` + /// ``` #[default] Merge, /// Show non-minimized hunks of local changes, the base, and the incoming (other) changes. /// /// This mode does not hide any information. - /// ``` + /// + /// ```text /// <<<<<<< local /// line1-changed-by-both /// line2-to-be-changed-in-incoming @@ -32,12 +33,12 @@ pub enum ConflictStyle { /// line1-changed-by-both /// line2-changed /// >>>>>>> incoming - ///``` + /// ``` Diff3, /// Like [`Diff3](Self::Diff3), but will show *minimized* hunks of local change and the incoming (other) changes, /// as well as non-minimized hunks of the base. /// - /// ``` + /// ```text /// line1-changed-by-both /// <<<<<<< local /// line2-to-be-changed-in-incoming diff --git a/gix-merge/src/blob/mod.rs b/gix-merge/src/blob/mod.rs index d114f3dee05..fbf578e054d 100644 --- a/gix-merge/src/blob/mod.rs +++ b/gix-merge/src/blob/mod.rs @@ -96,7 +96,7 @@ pub struct Driver { /// /// A typical invocation with all arguments substituted could then look like this: /// - /// ``` + /// ```sh /// .merge_file_nR2Qs1 .merge_file_WYXCJe .merge_file_UWbzrm 7 file e2a2970 HEAD feature /// ``` /// diff --git a/gix-pack/src/index/mod.rs b/gix-pack/src/index/mod.rs index 8d880744241..b6e689a6e09 100644 --- a/gix-pack/src/index/mod.rs +++ b/gix-pack/src/index/mod.rs @@ -1,5 +1,5 @@ //! an index into the pack file -//! + /// From itertools /// Create an iterator running multiple iterators in lockstep. /// @@ -21,7 +21,7 @@ /// /// [`multizip`]: fn.multizip.html /// -/// ``` +/// ```ignore /// # use itertools::izip; /// # /// # fn main() { @@ -37,6 +37,9 @@ /// assert_eq!(results, [0 + 3, 10 + 7, 29, 36]); /// # } /// ``` +/// +/// (The above is vendored from [itertools](https://github.com/rust-itertools/itertools), +/// including the original doctest, though it has been marked `ignore` here.) macro_rules! izip { // @closure creates a tuple-flattening closure for .map() call. usage: // @closure partial_pattern => partial_tuple , rest , of , iterators diff --git a/justfile b/justfile index b0b0c0f4060..dfd3b44c634 100755 --- a/justfile +++ b/justfile @@ -38,7 +38,7 @@ clippy-fix: # Build all code in suitable configurations check: - cargo check --all + cargo check --workspace cargo check --no-default-features --features small # assure compile error occurs if cargo check --features lean-async 2>/dev/null; then false; else true; fi @@ -146,8 +146,8 @@ check: # Run cargo doc on all crates doc $RUSTDOCFLAGS="-D warnings": - cargo doc --all --no-deps --features need-more-recent-msrv - cargo doc --features=max,lean,small --all --no-deps --features need-more-recent-msrv + cargo doc --workspace --no-deps --features need-more-recent-msrv + cargo doc --features=max,lean,small --workspace --no-deps --features need-more-recent-msrv # run all unit tests unit-tests: