nom
nom copied to clipboard
Doc: fix 2 unresolved link to recipes.
Thanks for your awesome work on nom! It's a small doc fix links to [recipes]
docs where broken. don't hesitate to close if it's a duplicate.
Found with cargo doc --open
.
These links work fine if the docsrs
feature is enabled; the recipes module just isn't built outside of documentation.
I see, no problem to close but it needs a nightly compiler to use this feature:
got this error on stable rustc 1.63.0 (4b91a6ea7 2022-08-08)
Added the error to document if somebody do a search to make a PR:
cargo doc --open --features=docsrs
Compiling memchr v2.5.0
Documenting minimal-lexical v0.2.1
Checking minimal-lexical v0.2.1
Documenting memchr v2.5.0
Documenting nom v7.1.1 (/home/axel/repository/nom)
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/lib.rs:376:33
|
376 | #![cfg_attr(feature = "docsrs", feature(doc_cfg))]
| ^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/lib.rs:377:33
|
377 | #![cfg_attr(feature = "docsrs", feature(extended_key_value_attributes))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
|
= help: the feature `extended_key_value_attributes` has been stable since 1.54.0 and no longer requires an attribute to enable
error: Compilation failed, aborting rustdoc
For more information about this error, try `rustc --explain E0554`.
error: could not document `nom`
Caused by:
process didn't exit successfully: `rustdoc --edition=2018 --crate-type lib --crate-name nom src/lib.rs -o /home/axel/repository/nom/target/doc --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="docsrs"' --cfg 'feature="std"' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=91ba581b2d291c49 -L dependency=/home/axel/repository/nom/target/debug/deps --extern memchr=/home/axel/repository/nom/target/debug/deps/libmemchr-02cc45cff3738b6b.rmeta --extern minimal_lexical=/home/axel/repository/nom/target/debug/deps/libminimal_lexical-29c10eb7925ca6cc.rmeta --crate-version 7.1.1` (exit status: 1)
Commited with wrong courriel fixed to use my personal one. :)