This repository has been archived on 2021-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
git-config/src/lib.rs

32 lines
982 B
Rust
Raw Normal View History

2021-02-23 08:30:48 -08:00
#![forbid(unsafe_code)]
//! # git_config
//!
//! This crate is a high performance `git-config` file reader and writer. It
//! exposes a high level API to parse, read, and write [`git-config` files],
//! which are loosely based on the [INI file format].
//!
//! [`git-config` files]: https://git-scm.com/docs/git-config#_configuration_file
//! [INI file format]: https://en.wikipedia.org/wiki/INI_file
2021-02-24 09:30:49 -08:00
// Cargo.toml cannot have self-referential dependencies, so you can't just
// specify the actual serde crate when you define a feature called serde. We
// instead call the serde crate as serde_crate and then rename the crate to
// serde, to get around this in an intuitive manner.
2021-02-24 09:11:18 -08:00
#[cfg(feature = "serde")]
extern crate serde_crate as serde;
2021-02-18 09:49:47 -08:00
// mod de;
2021-02-24 12:47:35 -08:00
// mod ser;
2021-02-27 19:18:44 -08:00
// mod error;
2021-02-18 21:12:59 -08:00
pub mod config;
2021-02-18 09:49:47 -08:00
pub mod parser;
2021-02-18 21:12:59 -08:00
pub mod values;
2021-02-18 09:49:47 -08:00
// pub use de::{from_str, Deserializer};
2021-02-27 19:18:44 -08:00
// pub use error::{Error, Result};
2021-02-18 09:49:47 -08:00
// pub use ser::{to_string, Serializer};
2021-02-23 16:47:24 -08:00
#[cfg(test)]
pub mod test_util;