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

32 lines
976 B
Rust
Raw Normal View History

2021-02-23 16:30:48 +00: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 17:30:49 +00: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 17:11:18 +00:00
#[cfg(feature = "serde")]
extern crate serde_crate as serde;
2021-02-18 17:49:47 +00:00
// mod de;
2021-02-24 20:47:35 +00:00
// mod ser;
2021-02-19 05:12:59 +00:00
pub mod config;
2021-02-18 17:49:47 +00:00
mod error;
pub mod parser;
2021-02-19 05:12:59 +00:00
pub mod values;
2021-02-18 17:49:47 +00:00
// pub use de::{from_str, Deserializer};
pub use error::{Error, Result};
// pub use ser::{to_string, Serializer};
2021-02-24 00:47:24 +00:00
#[cfg(test)]
pub mod test_util;