rust-mobile / ndk

Rust bindings to the Android NDK
Apache License 2.0
1.11k stars 110 forks source link

Cargo apk returns `Error: Failed to parse config` when Cargo version inherits from workspace #359

Closed Nicolas-Ferre closed 1 year ago

Nicolas-Ferre commented 1 year ago

Since Rust 1.64.0, it is possible to inherit some package properties from the workspace. This feature seems not yet supported by Cargo apk for the package.version property.

For example, running the command cargo apk run --package my_package in a workspace returns the following error:

Error: Failed to parse config.

Caused by:
    invalid type: map, expected a string for key `package.version` at line 3 column 21

Where the Cargo.toml file of my_package is:

[package]
name = "my_package"
version.workspace = true
MarijnS95 commented 1 year ago

We just started using these internally too, and are working on parser support for it.

MarijnS95 commented 1 year ago