summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-netdoc/src')
-rw-r--r--crates/tor-netdoc/src/doc.rs2
-rw-r--r--crates/tor-netdoc/src/lib.rs6
-rw-r--r--crates/tor-netdoc/src/parse/tokenize.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/crates/tor-netdoc/src/doc.rs b/crates/tor-netdoc/src/doc.rs
index f538b6246..ddec3e64e 100644
--- a/crates/tor-netdoc/src/doc.rs
+++ b/crates/tor-netdoc/src/doc.rs
@@ -32,7 +32,7 @@
use crate::util::intern::InternCache;
pub mod authcert;
-#[cfg(feature = "onion-common")]
+#[cfg(feature = "hs-common")]
pub mod hsdesc;
pub mod microdesc;
pub mod netstatus;
diff --git a/crates/tor-netdoc/src/lib.rs b/crates/tor-netdoc/src/lib.rs
index 50af9b967..474379a4e 100644
--- a/crates/tor-netdoc/src/lib.rs
+++ b/crates/tor-netdoc/src/lib.rs
@@ -38,7 +38,7 @@
#![allow(clippy::result_large_err)] // temporary workaround for arti#587
//! <!-- @@ end lint list maintained by maint/add_warning @@ -->
-#[cfg(feature = "onion-service")]
+#[cfg(feature = "hs-service")]
pub(crate) mod build;
#[macro_use]
pub(crate) mod parse;
@@ -54,8 +54,8 @@ pub use util::batching_split_before;
pub use err::{BuildError, Error, ParseErrorKind, Pos};
-#[cfg(feature = "onion-service")]
-#[cfg_attr(docsrs, doc(cfg(feature = "onion-service")))]
+#[cfg(feature = "hs-service")]
+#[cfg_attr(docsrs, doc(cfg(feature = "hs-service")))]
pub use build::NetdocText;
/// Alias for the Result type returned by most objects in this module.
diff --git a/crates/tor-netdoc/src/parse/tokenize.rs b/crates/tor-netdoc/src/parse/tokenize.rs
index 7e67261ee..2e4acfad1 100644
--- a/crates/tor-netdoc/src/parse/tokenize.rs
+++ b/crates/tor-netdoc/src/parse/tokenize.rs
@@ -24,7 +24,7 @@ pub(crate) mod object {
/// indicates the end of a begin or end tag.
pub(crate) const TAG_END: &str = "-----";
/// Maximum PEM base64 line length (not enforced during parsing)
- #[cfg(feature = "onion-service")]
+ #[cfg(feature = "hs-service")]
pub(crate) const BASE64_PEM_MAX_LINE: usize = 64;
}