Skip to content

Problems with cargo_profile #912

Open
@tomasol

Description

@tomasol

I have noticed a couple of issues while trying to use cargo_profile (b585670)

If cargo_profile is specified in the Trunk.toml without <link data-trunk rel="rust" it will be ignored. My guess is that the HTML pipeline will call RustApp::new_default where the profile is set to None.

Also, passing --cargo-profile argument to the CLI does not work either, unless <link data-trunk rel="rust" is present.

The workaround is to specify the profile in the attribute, e.g.

<link data-trunk rel="rust" data-type="main" data-cargo-profile-release="release_trunk" />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions