1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-20 06:15:37 +02:00

globset: Implement serde::{Serialize, Deserialize} for Glob

PR #1492
This commit is contained in:
Lucien Greathouse
2020-02-21 04:40:47 -08:00
committed by GitHub
parent eef7a7e7ff
commit db7a8cdcb5
5 changed files with 53 additions and 0 deletions

View File

@ -110,6 +110,9 @@ extern crate fnv;
extern crate log;
extern crate regex;
#[cfg(feature = "serde1")]
extern crate serde;
use std::borrow::Cow;
use std::collections::{BTreeMap, HashMap};
use std::error::Error as StdError;
@ -129,6 +132,9 @@ use pathutil::{file_name, file_name_ext, normalize_path};
mod glob;
mod pathutil;
#[cfg(feature = "serde1")]
mod serde_impl;
/// Represents an error that can occur when parsing a glob pattern.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Error {