1 // Copyright 2013-2014 The Rust Project Developers. 2 // Copyright 2018 The Uuid Project Developers. 3 // 4 // See the COPYRIGHT file at the top-level directory of this distribution. 5 // 6 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 7 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 8 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 9 // option. This file may not be copied, modified, or distributed 10 // except according to those terms. 11 12 //! The [`uuid`] prelude. 13 //! 14 //! This module contains the most important items of the [`uuid`] crate. 15 //! 16 //! To use the prelude, include the following in your crate root: 17 //! 18 //! ```rust 19 //! extern crate uuid; 20 //! ``` 21 //! 22 //! # Prelude Contents 23 //! 24 //! Currently the prelude reexports the following: 25 //! 26 //! [`uuid`]`::{`[`Error`], [`Uuid`], [`Variant`], [`Version`], 27 //! builder::[`Builder`]`}`: The fundamental types used in [`uuid`] crate. 28 //! 29 //! [`uuid`]: ../index.html 30 //! [`Error`]: ../enum.Error.html 31 //! [`Uuid`]: ../struct.Uuid.html 32 //! [`Variant`]: ../enum.Variant.html 33 //! [`Version`]: ../enum.Version.html 34 //! [`Builder`]: ../builder/struct.Builder.html 35 //! 36 #![cfg_attr(feature = "v1", 37 doc = " 38 [`uuid::v1`]`::{`[`ClockSequence`],[`Context`]`}`: The types useful for 39 handling uuid version 1. Requires feature `v1`. 40 41 [`uuid::v1`]: ../v1/index.html 42 [`Context`]: ../v1/struct.Context.html 43 [`ClockSequence`]: ../v1/trait.ClockSequence.html")] 44 45 pub use super::{Builder, Bytes, Error, Uuid, Variant, Version}; 46 #[cfg(feature = "v1")] 47 pub use crate::v1::{ClockSequence, Context}; 48