-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docsrs build to CI * Put cfg flags in both RUSTFLAGS and RUSTDOCFLAGS
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
FEATURES := serde rand_core digest | ||
|
||
export RUSTFLAGS := --cfg=curve25519_dalek_backend="simd" | ||
export RUSTDOCFLAGS := \ | ||
--cfg docsrs \ | ||
--html-in-header docs/assets/rustdoc-include-katex-header.html | ||
|
||
doc: | ||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\" | ||
cargo +nightly rustdoc --features "$(FEATURES)" | ||
|
||
doc-internal: | ||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --document-private-items --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\" | ||
cargo +nightly rustdoc --features "$(FEATURES)" -- --document-private-items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters