I use cargo build --release to create my project in release configuration and cargo test to create and run my tests.
cargo build --release
cargo test
However, I would also like to build my tests in release mode; can this be done with cargo?
cargo test --release does not exist yet: # 691 . The only way to control this at the moment is to set the opt-level in the [profile.test] section of your Cargo.toml, as suggested by Victor Dahl.
cargo test --release
opt-level
[profile.test]
Source: https://habr.com/ru/post/985762/More articles:Ranking a data structure other than std :: vector? - c ++How to pass json string in webmethod C # ASP.NET - javascriptRegex for two consecutive dot email domain failure - regexzsh: command not found: gulp - command-lineMocking ftplib.FTP for unit testing Python code - pythonWhat should I decorate with @ asyncio.coroutine for asynchronous operations? - pythonwhy mysql convert bool to tinyint (1), instead it should be bool in mysql table - phpHow to make a semicircular background in css - cssHow to force the creation of a symbolic link to override the existing symbolic link? - node.jsA temporary variable in list comprehension - pythonAll Articles