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

derivative is unmaintained; consider using an alternative #293

Closed
Xuanwo opened this issue Dec 27, 2024 · 1 comment · Fixed by #294
Closed

derivative is unmaintained; consider using an alternative #293

Xuanwo opened this issue Dec 27, 2024 · 1 comment · Fixed by #294

Comments

@Xuanwo
Copy link

Xuanwo commented Dec 27, 2024

Bug Report

cargo audit reported the following issue:

Crate:     derivative
Version:   2.2.0
Warning:   unmaintained
Title:     `derivative` is unmaintained; consider using an alternative
Date:      2024-06-26
ID:        RUSTSEC-2024-0388
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0388
Dependency tree:
derivative 2.2.0
└── pilota 0.11.8
    ├── volo-thrift 0.10.5
    │   ├── iceberg-catalog-hms 0.4.0
    │   └── hive_metastore 0.1.0
    │       └── iceberg-catalog-hms 0.4.0
    ├── iceberg-catalog-hms 0.4.0
    └── hive_metastore 0.1.0
@flaneur2020
Copy link
Contributor

flaneur2020 commented Jan 2, 2025

Come from this issue apache/iceberg-rust#857

It seems derivative is only used to derive the Default trait for enums in the codebase. Instead of switching to another crate (most of these crates are seems not in a very active state either), Rust has this capability built-in to set a #[derive(Default)] right now https://rust-lang.github.io/rfcs/3107-derive-default-enum.html . So I suppose derivative could be replaced with the language built-in #[default] support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants