Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with cargo_profile #912

Open
tomasol opened this issue Nov 13, 2024 · 0 comments
Open

Problems with cargo_profile #912

tomasol opened this issue Nov 13, 2024 · 0 comments

Comments

@tomasol
Copy link

tomasol commented Nov 13, 2024

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" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant