pub struct ManpagesConfig {
pub generate: Option<String>,
pub from_build_out: Option<String>,
pub copy: Option<String>,
pub dst: Option<String>,
}Expand description
Man-page generation for an archive entry.
Same three mutually-exclusive modes as CompletionsConfig, minus the
per-shell shells axis (man pages are shell-agnostic).
YAML examples:
manpages:
generate: "{{ ArtifactPath }} --man" # mode A
dst: "man/man1/"
# mode B: from_build_out: "**/out/{{ Binary }}.1"
# mode C: copy: "man/*.1"Fields§
§generate: Option<String>Mode A: command run once on the host-native binary; stdout is captured
into a single man file under dst named <binary>.1.
from_build_out: Option<String>Mode B: per-target glob harvesting man files a build.rs wrote into
the crate’s OUT_DIR (e.g. "**/out/{{ Binary }}.1").
copy: Option<String>Mode C: glob/path of committed man files to copy verbatim.
dst: Option<String>Destination directory inside the archive (and dist staging tree) for
the generated man files. Defaults to "man/man1/".
Implementations§
Source§impl ManpagesConfig
impl ManpagesConfig
Sourcepub const DEFAULT_DST: &'static str = "man/man1/"
pub const DEFAULT_DST: &'static str = "man/man1/"
Default destination directory inside the archive.
Sourcepub fn resolved_dst(&self) -> &str
pub fn resolved_dst(&self) -> &str
Resolve the destination directory, falling back to Self::DEFAULT_DST.
Trait Implementations§
Source§impl Clone for ManpagesConfig
impl Clone for ManpagesConfig
Source§fn clone(&self) -> ManpagesConfig
fn clone(&self) -> ManpagesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManpagesConfig
impl Debug for ManpagesConfig
Source§impl Default for ManpagesConfig
impl Default for ManpagesConfig
Source§fn default() -> ManpagesConfig
fn default() -> ManpagesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManpagesConfig
impl<'de> Deserialize<'de> for ManpagesConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ManpagesConfig
impl JsonSchema for ManpagesConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ManpagesConfig
impl PartialEq for ManpagesConfig
Source§impl Serialize for ManpagesConfig
impl Serialize for ManpagesConfig
impl StructuralPartialEq for ManpagesConfig
Auto Trait Implementations§
impl Freeze for ManpagesConfig
impl RefUnwindSafe for ManpagesConfig
impl Send for ManpagesConfig
impl Sync for ManpagesConfig
impl Unpin for ManpagesConfig
impl UnsafeUnpin for ManpagesConfig
impl UnwindSafe for ManpagesConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more