Docs.rs
  • git-config-0.16.2
    • git-config 0.16.2
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Byron
    • Dependencies
      • bstr ^1.0.1 normal
      • document-features ^0.2.0 normal
      • git-config-value ^0.10.2 normal
      • git-features ^0.26.5 normal
      • git-glob ^0.5.4 normal
      • git-path ^0.7.2 normal
      • git-ref ^0.24.1 normal
      • git-sec ^0.6.3 normal
      • memchr ^2 normal
      • nom ^7 normal
      • once_cell ^1.14.0 normal
      • serde ^1.0.114 normal
      • smallvec ^1.9.0 normal
      • thiserror ^1.0.26 normal
      • unicode-bom ^1.1.4 normal
      • criterion ^0.4.0 dev
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

Crate git_config

logo

Crate git_config

  • Version 0.16.2
  • All Items
  • Modules
  • Structs
  • Enums

Crates

  • git_config
?
Change settings

Crate git_config

source ·
Expand description

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.

This crate has a few primary offerings and various accessory functions. The table below gives a brief explanation of all offerings, loosely in order from the highest to lowest abstraction.

OfferingDescriptionZero-copy?
FileAccelerated wrapper for reading and writing values.On some reads1
parse::StateSyntactic events for git-config files.Yes
value wrappersWrappers for git-config value types.Yes

This crate also exposes efficient value normalization which unescapes characters and removes quotes through the normalize_* family of functions, located in the value module.

Known differences to the git config specification

  • Legacy headers like [section.subsection] are supposed to be turned into to lower case and compared case-sensitively. We keep its case and compare case-insensitively.

Feature Flags

  • serde1 — Data structures implement serde::Serialize and serde::Deserialize.

  1. When read values do not need normalization and it wasn’t parsed in ‘owned’ mode. ↩

Modules

color
file
A high level wrapper around a single or multiple git-config file, for reading and mutation.
integer
lookup
parse
This module handles parsing a git-config file. Generally speaking, you want to use a higher abstraction such as File unless you have some explicit reason to work with events instead.
path
source
value

Structs

Boolean
Any value that can be interpreted as a boolean.
Color
Any value that may contain a foreground color, background color, a collection of color (text) modifiers, or a combination of any of the aforementioned values, like red or brightgreen.
File
High level git-config reader and writer.
Integer
Any value that can be interpreted as an integer.
Path
Any value that can be interpreted as a path to a resource on disk.

Enums

Source
A list of known sources for git configuration in order of ascending precedence.

Results

git_config
git_config
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.