Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

_RUST_STABLE: &rust_stable stable
# Pinning the nightly version to a "stable" version to avoid CI breakages.
_RUST_NIGHTLY: &rust_nightly nightly-2025-11-11
_RUST_NIGHTLY: &rust_nightly nightly-2026-02-28

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
# This will ensure that only one commit will be running tests at a time on each PR.
Expand Down Expand Up @@ -198,7 +198,6 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
# branch coverage is currently optional and requires nightly
toolchain: *rust_nightly
components: llvm-tools-preview

Expand Down Expand Up @@ -227,11 +226,13 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

# TODO: consider enabling branch coverage once it's supported in stable
# https://github.com/taiki-e/cargo-llvm-cov/issues/8
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --branch --no-report -- --include-ignored
run: cargo llvm-cov --all-features --workspace --no-report -- --include-ignored

- name: Generate code coverage - doctests
run: cargo llvm-cov --all-features --workspace --branch --doc --no-report
run: cargo llvm-cov --all-features --workspace --doc --no-report

- name: Merge code coverage reports
run: cargo llvm-cov report --codecov --output-path codecov.json
Expand Down
3 changes: 2 additions & 1 deletion cot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pub(crate) mod utils;

#[cfg(feature = "openapi")]
pub use aide;
pub use bytes;
/// A wrapper around a handler that's used in [`Bootstrapper`].
///
/// It is returned by [`Bootstrapper::finish`]. Typically, you don't need to
Expand Down Expand Up @@ -181,9 +182,9 @@ pub use cot_macros::e2e_test;
/// ```
pub use cot_macros::main;
pub use cot_macros::test;
pub use http;
#[cfg(feature = "openapi")]
pub use schemars;
pub use {bytes, http};

pub use crate::__private::askama::{Template, filter_fn};
pub use crate::project::{
Expand Down
Loading