use std::sync::{Arc, LazyLock};
use crate::{OptionValue, ProtoOption};
pub static VALIDATE_PROTO_FILE: LazyLock<Arc<str>> =
LazyLock::new(|| "buf/validate/validate.proto".into());
pub static DESCRIPTOR_PROTO_FILE: LazyLock<Arc<str>> =
LazyLock::new(|| "google/protobuf/descriptor.proto".into());
pub fn allow_alias() -> ProtoOption {
ProtoOption {
name: "allow_alias",
value: Arc::new(OptionValue::Bool(true)),
}
}
pub fn deprecated() -> ProtoOption {
ProtoOption {
name: "deprecated",
value: Arc::new(OptionValue::Bool(true)),
}
}