Changelog for cargo-odra
.
- Tests filter with
--test
flag.
- Handle empty
Odra.toml
.
- Support for defining template of a contract to grab when using
generate
command. - Ability to list all available templates using
list-templates
command.
- Fixed error that caused contracts to fail to be built when coming from crates with hyphens in their name.
- Support for defining
odra-build
dependency inCargo.toml
file of generated Odra projects.
wasm-opt
to the build process. It is used to optimize the wasm file.- Support for
.cargo/config.toml
target directory override.
- Inconsistent casing for
-c
argument - Invalid fqn generation in some cases
- Schema generation for contracts
cargo odra update
command. It is no longer needed, as it was the same ascargo update
.
- Fixed error that caused the template for odra 0.8.0 being downloaded for earlier versions of odra.
generate
command validates if the module is already added tolib.rs
.
- Autocompletion.
- Simplified wasm build process.
- Better dependencies management for the
builder
.
- Support for Odra from crates.io.
--contract-name
filter forbuild
command.--source
fornew
andinit
commands replacing--branch
- Support for workspaces.
test
command can skip build using--skip-build
flag.
backend
command is no logner needed.gherkin
tests.
generate
command doesn't override files anymore. It fails instead.generate
uses hardcoded code instead offlipper.rs
from Github.Odra.toml
is now simpler. It doesn't havename
anymore.name
fromCargo.toml
is used. A contract definition no longer needspath
field. List of contract is no longer.- Codebase is now lib based. It has
lib.rs
and the main bin is inbin/cargo_odra.rs
. - Error to use
thiserror
. - Most of the file system functions is now in
commands.rs
. just
replacedmake
.
paths.rs
for all paths releated operations.template.rs
for code generation releated operations.cli.rs
forclap
code.rustfmt.toml
with formatting rules.init
andnew
can specifygit-branch
parameter.
- new options -
--verbose
and--quiet
, which will be passed to cargo commands.
- Error handling, now each error has its own exit code.
update
command.backend list
command.- Building a backend will now check if wasm target is installed.
backend add
command now does not requirename
parameter -package
will be used as name by default.test
command now passes arguments supplied after--
to cargo test without the need to type-a
.
Unsupported dependency for backend
message that showed up on some configurations - thanks to jrojek from Odra.dev Discord for pointing this out.
init
andnew
commands.backend
command to manage backends with subcommandsadd
andremove
.test
command with possibility to run tests against OdraVM and dedicated backend VM.clean
command which removes temporary files generated by cargo-odra.generate
command which can generate a new sample contract, ready to run and test.CHANGELOG.md
andREADME.md
files.