diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c0ef0ad..f860bdc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,10 +21,11 @@ jobs: run: cargo fmt -- --check - name: Features subsets run: | - ruby -e "fs=['bigdecimal02', 'bigdecimal', 'chrono', 'rust_decimal', 'time02', 'time', 'frunk', 'derive']; \ + ruby -e "fs=['bigdecimal02', 'bigdecimal', 'bigdecimal04', 'chrono', 'rust_decimal', 'time02', 'time', 'frunk', 'derive', 'binlog']; \ (1..fs.length).each do |n| puts fs.combination(n).to_a.map {|x| x.join(\" \")}.join(\"\n\"); end" \ | while read -r line; do \ echo "$line" && cargo check --quiet --tests --no-default-features --features "flate2/zlib test $line"; \ + rm -rf target/debug/incremental; \ done - name: Build run: cargo build diff --git a/Cargo.toml b/Cargo.toml index 00e34e9..34c7643 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,9 +85,18 @@ subprocess = "0.2" debug = true [features] -default = ["flate2/zlib", "bigdecimal", "rust_decimal", "time", "frunk", "derive"] +default = [ + "flate2/zlib", + "bigdecimal", + "rust_decimal", + "time", + "frunk", + "derive", + "binlog", +] test = ["derive"] derive = ["mysql-common-derive"] +binlog = [] nightly = ["test"] [package.metadata.docs.rs] @@ -100,6 +109,8 @@ features = [ "rust_decimal", "chrono", "bigdecimal02", + "bigdecimal04", "bigdecimal", "derive", + "binlog", ] diff --git a/src/lib.rs b/src/lib.rs index db52c85..c063db7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,12 +71,14 @@ //! | -------------- | ---------------------------------------------------- | ------- | //! | `bigdecimal02` | Enables `bigdecimal` v0.2.x types support | 🔴 | //! | `bigdecimal` | Enables `bigdecimal` v0.3.x types support | 🟢 | +//! | `bigdecimal04` | Enables `bigdecimal` v0.4.x types support | 🔴 | //! | `chrono` | Enables `chrono` types support | 🔴 | //! | `rust_decimal` | Enables `rust_decimal` types support | 🟢 | //! | `time02` | Enables `time` v0.2.x types support | 🔴 | //! | `time` | Enables `time` v0.3.x types support | 🟢 | //! | `frunk` | Enables `FromRow` for `frunk::Hlist!` types | 🟢 | //! | `derive` | Enables [`FromValue` and `FromRow` derive macros][2] | 🟢 | +//! | `binlog` | Binlog-related functionality | 🟢 | //! //! # Derive Macros //! @@ -473,6 +475,8 @@ pub mod row; pub mod scramble; pub mod value; +#[cfg(feature = "binlog")] +#[cfg_attr(docsrs, doc(cfg(feature = "binlog")))] pub mod binlog; #[cfg(test)]