curve25519-dalek-source/src/lib.rs

37 lines
966 B
Rust
Raw Normal View History

2017-09-14 00:25:34 +00:00
// -*- mode: rust; -*-
//
// This file is part of x25519-dalek.
// Copyright (c) 2017 Isis Lovecruft
// See LICENSE for licensing information.
//
// Authors:
// - Isis Agora Lovecruft <isis@patternsinthevoid.net>
2019-01-10 18:30:30 +00:00
// Refuse to compile if documentation is missing, but only on nightly.
//
// This means that missing docs will still fail CI, but means we can use
// README.md as the crate documentation.
2017-09-14 00:25:34 +00:00
#![no_std]
#![cfg_attr(feature = "bench", feature(test))]
2019-01-10 18:30:30 +00:00
#![cfg_attr(feature = "nightly", feature(external_doc))]
#![cfg_attr(feature = "nightly", deny(missing_docs))]
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
#![doc(html_logo_url = "https://doc.dalek.rs/assets/dalek-logo-clear.png")]
//! Note that docs will only build on nightly Rust until
//! `feature(external_doc)` is stabilized.
2017-09-14 00:25:34 +00:00
extern crate clear_on_drop;
2017-09-14 00:25:34 +00:00
extern crate curve25519_dalek;
extern crate rand_core;
2017-09-14 00:25:34 +00:00
#[cfg(test)]
extern crate rand;
2017-09-14 00:25:34 +00:00
mod x25519;
pub use x25519::*;