Skip to content

Commit b7652e9

Browse files
authored
docs: Add features to docs.rs (#190)
1 parent 452f012 commit b7652e9

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
build:
2121
name: Build
2222
runs-on: ubuntu-latest
23-
timeout-minutes: 5
23+
timeout-minutes: 10
2424

2525
steps:
2626
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -47,6 +47,11 @@ jobs:
4747
- name: Build
4848
run: cargo build --all-targets --all-features
4949

50+
- name: Check docs.rs build
51+
env:
52+
RUSTDOCFLAGS: --cfg docsrs
53+
run: cargo +nightly doc -p agent-client-protocol --all-features --no-deps
54+
5055
- name: Install just
5156
uses: taiki-e/install-action@d9be7d8cda89035c9c843f78bd44d4f72d8403d4
5257
with:

src/agent-client-protocol-conductor/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ categories = ["development-tools"]
1414
name = "agent-client-protocol-conductor"
1515
path = "src/main.rs"
1616

17-
[features]
18-
test-support = []
19-
2017
[dependencies]
2118
agent-client-protocol = { workspace = true }
2219
agent-client-protocol-trace-viewer.workspace = true

src/agent-client-protocol/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ description = "Core protocol types and traits for the Agent Client Protocol"
1010
keywords = ["acp", "agent", "protocol", "ai"]
1111
categories = ["development-tools"]
1212

13+
[package.metadata.docs.rs]
14+
all-features = true
15+
rustdoc-args = ["--cfg", "docsrs"]
16+
1317
[features]
1418
default = []
1519

src/agent-client-protocol/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg_attr(docsrs, feature(doc_cfg))]
12
#![deny(missing_docs)]
23

34
//! # agent-client-protocol -- the Agent Client Protocol (ACP) SDK

0 commit comments

Comments
 (0)