Skip to content

Commit 2c1ccfa

Browse files
docs(rust): properly document optional feature
1 parent c25b635 commit 2c1ccfa

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ setup.py linguist-generated
1313
Package.swift linguist-generated
1414

1515
bindings/rust/lib.rs -linguist-generated
16+
bindings/rust/parser.rs -linguist-generated
1617
bindings/rust/benchmark.rs -linguist-generated

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ required-features = ["parser"]
4747

4848
[profile.release]
4949
debug = true
50+
51+
[package.metadata.docs.rs]
52+
features = ["parser"]

bindings/rust/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ pub const NODE_TYPES_INLINE: &str =
5454
include_str!("../../tree-sitter-markdown-inline/src/node-types.json");
5555

5656
#[cfg(feature = "parser")]
57-
#[cfg_attr(docsrs, doc(cfg(feature = "parser")))]
5857
mod parser;
5958

6059
#[cfg(feature = "parser")]
61-
#[cfg_attr(docsrs, doc(cfg(feature = "parser")))]
6260
pub use parser::*;
6361

6462
#[cfg(test)]

0 commit comments

Comments
 (0)