[go: up one dir, main page]

File: lib.rs

package info (click to toggle)
rust-deluxe-core 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: makefile: 4
file content (47 lines) | stat: -rw-r--r-- 1,316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! # Deluxe Core
//!
//! Core functions and traits shared between [`deluxe`](https://docs.rs/deluxe) and
//! [`deluxe_macros`](https://docs.rs/deluxe-macros).
//!
//! This crate is used by [`deluxe_macros`](https://docs.rs/deluxe-macros) to parse its own
//! attributes. Code generated by its derive macros also references items from this crate
//! re-exported into [`deluxe`](https://docs.rs/deluxe). The functions in [`parse_helpers`] are used
//! internally by the derive macros, but can also be used for convenience when manually
//! implementing any of the parsing traits.
//!
//! See the documentation for the [`deluxe`](https://docs.rs/deluxe) crate for a high-level overview
//! of how Deluxe works.

#![deny(missing_docs)]
#![deny(unsafe_code)]

#[cfg(feature = "proc-macro")]
extern crate proc_macro;

mod parse_attributes;
pub mod parse_helpers;
mod parse_meta;
mod small_string;
mod util;
pub mod validations;
pub mod with;

pub use parse_attributes::*;
pub use parse_meta::*;
pub use util::*;

pub use proc_macro2::Span;

#[doc(hidden)]
pub use syn;
#[doc(hidden)]
pub use {
    std::{
        borrow::Borrow,
        collections::HashMap,
        fmt,
        hash::{Hash, Hasher},
        ops, primitive, stringify,
    },
    AsRef, Clone, Default, Eq, IntoIterator, Iterator, Option, PartialEq,
};