fix: add serde feature and generate fields name correctly (#260) #701
ci.yaml
on: push
Matrix: lint
test-linux
49s
test-linux-aarch64
1m 47s
test-macos
1m 47s
test-windows
3m 25s
CI is green
0s
Annotations
30 warnings
struct `ExceptionVariant` is never constructed:
pilota-build/src/ir/mod.rs#L60
warning: struct `ExceptionVariant` is never constructed
--> pilota-build/src/ir/mod.rs:60:12
|
60 | pub struct ExceptionVariant {
| ^^^^^^^^^^^^^^^^
|
= note: `ExceptionVariant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
|
method `increment_by` is never used:
pilota-build/src/index.rs#L14
warning: method `increment_by` is never used
--> pilota-build/src/index.rs:14:8
|
3 | pub trait Idx: Sized + Copy + 'static {
| --- method in this trait
...
14 | fn increment_by(&mut self, amount: usize) {
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
usage of a legacy numeric method:
pilota/src/prost/mod.rs#L67
warning: usage of a legacy numeric method
--> pilota/src/prost/mod.rs:67:24
|
67 | if length > usize::max_value() as u64 {
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
67 | if length > usize::MAX as u64 {
| ~~~
|
importing legacy numeric constants:
pilota/src/prost/encoding.rs#L9
warning: importing legacy numeric constants
--> pilota/src/prost/encoding.rs:9:55
|
9 | use core::{cmp::min, convert::TryFrom, mem, str, u32, usize};
| ^^^^^
|
= help: remove this import
= note: then `usize::<CONST>` will resolve to the respective associated constant
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
|
importing legacy numeric constants:
pilota/src/prost/encoding.rs#L9
warning: importing legacy numeric constants
--> pilota/src/prost/encoding.rs:9:50
|
9 | use core::{cmp::min, convert::TryFrom, mem, str, u32, usize};
| ^^^
|
= help: remove this import
= note: then `u32::<CONST>` will resolve to the respective associated constant
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
|
importing legacy numeric constants:
pilota/src/prost/message.rs#L4
warning: importing legacy numeric constants
--> pilota/src/prost/message.rs:4:24
|
4 | use core::{fmt::Debug, usize};
| ^^^^^
|
= help: remove this import
= note: then `usize::<CONST>` will resolve to the respective associated constant
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `#[warn(clippy::legacy_numeric_constants)]` on by default
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L246
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:246:11
|
246 | #[cfg(feature = "no-recursion-limit")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L236
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:236:15
|
236 | #[cfg(not(feature = "no-recursion-limit"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L225
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:225:11
|
225 | #[cfg(feature = "no-recursion-limit")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L217
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:217:15
|
217 | #[cfg(not(feature = "no-recursion-limit"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L196
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:196:15
|
196 | #[cfg(not(feature = "no-recursion-limit"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L200
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:200:11
|
200 | #[cfg(not(feature = "no-recursion-limit"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/encoding.rs#L188
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/encoding.rs:188:12
|
188 | #[cfg_attr(feature = "no-recursion-limit", derive(Default))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `prost-derive`:
pilota/src/prost/mod.rs#L83
warning: unexpected `cfg` condition value: `prost-derive`
--> pilota/src/prost/mod.rs:83:7
|
83 | #[cfg(feature = "prost-derive")]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `prost-derive` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `prost-derive`:
pilota/src/prost/mod.rs#L79
warning: unexpected `cfg` condition value: `prost-derive`
--> pilota/src/prost/mod.rs:79:7
|
79 | #[cfg(feature = "prost-derive")]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `prost-derive` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
unexpected `cfg` condition value: `no-recursion-limit`:
pilota/src/prost/mod.rs#L18
warning: unexpected `cfg` condition value: `no-recursion-limit`
--> pilota/src/prost/mod.rs:18:11
|
18 | #[cfg(not(feature = "no-recursion-limit"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `unstable`
= help: consider adding `no-recursion-limit` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
lint (nightly)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint (nightly)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test-linux
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-macos
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, Swatinem/rust-cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-macos
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test-macos
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-macos
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-linux-aarch64
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-windows
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, Swatinem/rust-cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-windows
The following actions uses node12 which is deprecated and will be forced to run on node16: Swatinem/rust-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test-windows
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-windows
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|