pub struct CreatePackageConfig {
    pub bridge_dir: PathBuf,
    pub paths: HashMap<ApplePlatform, PathBuf>,
    pub out_dir: PathBuf,
    pub package_name: String,
}
Expand description

Config for generating Swift packages

Fields§

§bridge_dir: PathBuf

The directory containing the generated bridges

§paths: HashMap<ApplePlatform, PathBuf>

Path per platform. e.g. (ApplePlatform::iOS, "target/aarch64-apple-ios/debug/libmy_rust_lib.a")

§out_dir: PathBuf

The directory where the package will be saved

§package_name: String

The name for the Swift package

Implementations§

Creates a new GeneratePackageConfig for generating Swift Packages from Rust code.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.