Struct maturin::Target[][src]

pub struct Target { /* fields omitted */ }
Expand description

The part of the current platform that is relevant when building wheels and is supported

Implementations

Uses the given target triple or tries the guess the current target by using the one used for compilation

Fails if the target triple isn’t supported

Returns the platform part of the tag for the wheel name

Returns the name python uses in sys.platform for this os

Returns the default Manylinux tag for this architecture

Returns whether the platform is 64 bit or 32 bit

Returns target triple string

Returns true if the current platform is not windows

Returns target architecture

Returns true if the current platform is linux

Returns true if the current platform is freebsd

Returns true if the current platform is mac os

Returns true if the current platform is windows

Returns true if the current platform’s target env is Musl

Returns the tags for the WHEEL file for cffi wheels

Returns the path to the python executable inside a venv

Returns the directory where the binaries are stored inside a venv

Returns the site-packages directory inside a venv e.g. {venv_base}/lib/python{x}.{y} on unix or {venv_base}/Lib on window

Returns the path to the python executable

For windows it’s always python.exe for unix it’s first the venv’s python and then python3

Returns the tags for the platform without python version

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

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

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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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