desktop_edit/lib.rs
1#![deny(missing_docs)]
2#![allow(clippy::type_complexity)]
3#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
4
5//! A lossless .desktop file parser and editor.
6//!
7//! This library provides a lossless parser for .desktop files as specified
8//! by the [freedesktop.org Desktop Entry Specification](https://specifications.freedesktop.org/desktop-entry-spec/latest/).
9//! It preserves all whitespace, comments, and formatting.
10//! It is based on the [rowan] library.
11
12mod desktop;
13mod lex;
14mod parse;
15
16pub use desktop::{Desktop, Entry, Error, Group, Lang, ParseError, PositionedParseError};
17pub use lex::SyntaxKind;
18pub use parse::Parse;
19pub use rowan::TextRange;