xtask::flags

Struct Xtask

source
pub struct Xtask {
    pub subcommand: XtaskCmd,
}

Fields§

§subcommand: XtaskCmd

Implementations§

source§

impl Xtask

source

fn from_env_or_exit_() -> Self

source

fn from_env_() -> Result<Self>

source

fn from_vec_(args: Vec<OsString>) -> Result<Self>

source§

impl Xtask

source

fn parse_(p_: &mut Parser) -> Result<Self>

source§

impl Xtask

source

const HELP_: &'static str = "xtask\n Run custom build command.\n\nOPTIONS:\n -h, --help\n Prints help information.\n\nSUBCOMMANDS:\n\nxtask install\n Install rust-analyzer server or editor plugin.\n\n OPTIONS:\n --client\n Install only VS Code plugin.\n\n --code-bin <name>\n One of `code`, `code-exploration`, `code-insiders`, `codium`, or `code-oss`.\n\n --server\n Install only the language server.\n\n --mimalloc\n Use mimalloc allocator for server.\n\n --jemalloc\n Use jemalloc allocator for server.\n\n --proc-macro-server\n Install the proc-macro server.\n\n --dev-rel\n build in release with debug info set to 2.\n\n\nxtask fuzz-tests\n\n\nxtask release\n\n OPTIONS:\n --dry-run\n\n\nxtask rustc-pull\n\n OPTIONS:\n --commit <refspec>\n rustc commit to pull.\n\n\nxtask rustc-push\n\n OPTIONS:\n --rust-path <rust_path>\n rust local path, e.g. `../rust-rust-analyzer`.\n\n --rust-fork <rust_fork>\n rust fork name, e.g. `matklad/rust`.\n\n --branch <branch>\n branch name.\n\n\nxtask dist\n\n OPTIONS:\n --mimalloc\n Use mimalloc allocator for server\n\n --jemalloc\n Use jemalloc allocator for server\n\n --client-patch-version <version>\n\n\nxtask publish-release-notes\n Read a changelog AsciiDoc file and update the GitHub Releases entry in Markdown.\n\n ARGS:\n <changelog>\n Target changelog file.\n\n OPTIONS:\n --dry-run\n Only run conversion and show the result.\n\n\nxtask metrics\n\n ARGS:\n [measurement_type]\n\n\nxtask bb\n Builds a benchmark version of rust-analyzer and puts it into `./target`.\n\n ARGS:\n <suffix>\n\n\nxtask codegen\n\n ARGS:\n [codegen_type]\n\n OPTIONS:\n --check\n\n\nxtask tidy\n"

source§

impl Xtask

source

pub fn from_env_or_exit() -> Self

source

pub fn from_env() -> Result<Self>

source

pub fn from_vec(args: Vec<OsString>) -> Result<Self>

Trait Implementations§

source§

impl Debug for Xtask

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Xtask

§

impl RefUnwindSafe for Xtask

§

impl Send for Xtask

§

impl Sync for Xtask

§

impl Unpin for Xtask

§

impl UnwindSafe for Xtask

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoBox<dyn Any> for T
where T: Any,

§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any + Sync + Send> for T
where T: Any + Send + Sync,

§

fn into_box(self) -> Box<dyn Any + Sync + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more