curve25519-dalek-source/Makefile
Michael Rosenberg 3b71630d9f
Fix docsrs build (#505)
* Add docsrs build to CI

* Put cfg flags in both RUSTFLAGS and RUSTDOCFLAGS
2023-02-02 04:06:14 -05:00

12 lines
346 B
Makefile

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)"
doc-internal:
cargo +nightly rustdoc --features "$(FEATURES)" -- --document-private-items