diff --git a/alpm-sys/Cargo.toml b/alpm-sys/Cargo.toml index d2e79a6..16e73b5 100644 --- a/alpm-sys/Cargo.toml +++ b/alpm-sys/Cargo.toml @@ -19,8 +19,8 @@ generate = ["bindgen"] docs-rs = [] [build-dependencies] -bindgen = { version = "0.66.1", optional = true, default-features = false, features = ["runtime"] } -pkg-config = "0.3.27" +bindgen = { version = "0.69.4", optional = true, default-features = false, features = ["runtime"] } +pkg-config = "0.3.29" [package.metadata.docs.rs] features = [ "docs-rs" ] diff --git a/alpm/Cargo.toml b/alpm/Cargo.toml index c5e1d10..ff064da 100644 --- a/alpm/Cargo.toml +++ b/alpm/Cargo.toml @@ -28,7 +28,7 @@ checkver = [] docs-rs = ["alpm-sys/docs-rs"] [dependencies] -bitflags = "1.3.2" +bitflags = "2.4.2" libarchive = { version = "0.1.1", optional = true } libarchive3-sys = { version = "0.1.2", optional = true } alpm-sys = { path = "../alpm-sys", version = "2.1.3" } @@ -37,7 +37,7 @@ alpm-sys = { path = "../alpm-sys", version = "2.1.3" } alpm-sys = { path = "../alpm-sys", version = "2.1.3" } [dev-dependencies] -criterion = "0.3.5" +criterion = "0.5.1" [[bench]] name = "list" diff --git a/alpm/src/alpm.rs b/alpm/src/alpm.rs index d17ccee..8e3429f 100644 --- a/alpm/src/alpm.rs +++ b/alpm/src/alpm.rs @@ -110,6 +110,7 @@ pub fn version() -> &'static str { } bitflags! { + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct Capabilities: u32 { const NLS = alpm_caps::ALPM_CAPABILITY_NLS; const DOWNLOADER = alpm_caps::ALPM_CAPABILITY_DOWNLOADER; diff --git a/alpm/src/lib.rs b/alpm/src/lib.rs index eef834f..ebe3f4a 100644 --- a/alpm/src/lib.rs +++ b/alpm/src/lib.rs @@ -34,23 +34,29 @@ mod version; pub use crate::add::*; pub use crate::alpm::*; +#[allow(unused_imports)] pub use crate::be_local::*; pub use crate::be_pkg::*; +#[allow(unused_imports)] pub use crate::be_sync::*; pub use crate::cb::*; pub use crate::conflict::*; pub use crate::db::*; pub use crate::deps::*; +#[allow(unused_imports)] pub use crate::dload::*; pub use crate::error::*; pub use crate::filelist::*; +#[allow(unused_imports)] pub use crate::handle::*; pub use crate::list::*; #[cfg(feature = "mtree")] pub use crate::mtree::*; pub use crate::package::*; +#[allow(unused_imports)] pub use crate::remove::*; pub use crate::signing::*; +#[allow(unused_imports)] pub use crate::sync::*; pub use crate::trans::*; pub use crate::types::*; diff --git a/alpm/src/trans.rs b/alpm/src/trans.rs index 25198a7..c0034c1 100644 --- a/alpm/src/trans.rs +++ b/alpm/src/trans.rs @@ -8,6 +8,7 @@ use std::ptr; use bitflags::bitflags; bitflags! { + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct TransFlag: u32 { const NONE = 0; const NO_DEPS = ALPM_TRANS_FLAG_NODEPS; diff --git a/alpm/src/types.rs b/alpm/src/types.rs index 3c3641f..75c2fd2 100644 --- a/alpm/src/types.rs +++ b/alpm/src/types.rs @@ -41,6 +41,7 @@ pub enum FetchResult { } bitflags! { + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct SigLevel: u32 { const NONE = 0; const PACKAGE = ALPM_SIG_PACKAGE; @@ -56,6 +57,7 @@ bitflags! { } bitflags! { + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct Usage: u32 { const NONE = 0; const SYNC = ALPM_DB_USAGE_SYNC; @@ -67,6 +69,7 @@ bitflags! { } bitflags! { + #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct LogLevel: u32 { const NONE = 0; const ERROR = ALPM_LOG_ERROR; @@ -107,6 +110,7 @@ pub enum PackageReason { } bitflags! { + #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] pub struct PackageValidation: u32 { const UNKNOWN = ALPM_PKG_VALIDATION_UNKNOWN; const NONE = ALPM_PKG_VALIDATION_NONE;