Debian Codegraph @

third_party/rust/dns-parser/src/lib.rs

raw
1 #![recursion_limit="100"]
2 //! The network-agnostic DNS parser library
3 //!
4 //! [Documentation](https://docs.rs/dns-parser) |
5 //! [Github](https://github.com/tailhook/dns-parser) |
6 //! [Crate](https://crates.io/crates/dns-parser)
7 //!
8 //! Use [`Builder`] to create a new outgoing packet.
9 //!
10 //! Use [`Packet::parse`] to parse a packet into a data structure.
11 //!
12 //! [`Builder`]: struct.Builder.html
13 //! [`Packet::parse`]: struct.Packet.html#method.parse
14 //!
15 #![warn(missing_docs)]
16 #![warn(missing_debug_implementations)]
17
18 extern crate byteorder;
19 #[cfg(test)] #[macro_use] extern crate matches;
20 #[macro_use(quick_error)] extern crate quick_error;
21 #[cfg(feature = "with-serde")] #[macro_use] extern crate serde_derive;
22
23 mod enums;
24 mod structs;
25 mod name;
26 mod parser;
27 mod error;
28 mod header;
29 mod builder;
30
31 pub mod rdata;
32
33 pub use enums::{Type, QueryType, Class, QueryClass, ResponseCode, Opcode};
34 pub use structs::{Question, ResourceRecord, Packet};
35 pub use name::{Name};
36 pub use error::{Error};
37 pub use header::{Header};
38 pub use rdata::{RData};
39 pub use builder::{Builder};