Skip to content

Commit

Permalink
chore: unify versioning across crates, preparing for 0.4
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Nosek <[email protected]>
  • Loading branch information
gnosek authored and poiana committed Oct 21, 2024
1 parent dae036e commit e044e1e
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 25 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions falco_event/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falco_event"
version = "0.1.4"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "Type-safe wrappers for Falco events"
Expand All @@ -12,7 +12,7 @@ categories = ["api-bindings"]

[dependencies]
byteorder = "1.5.0"
falco_event_derive = { path = "../falco_event_derive", version = "0.2.0" }
falco_event_derive = { path = "../falco_event_derive", version = "0.4.0" }
memchr = "2.7.1"
num-derive = "0.4.2"
num-traits = "0.2.17"
Expand Down
2 changes: 1 addition & 1 deletion falco_event_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falco_event_derive"
version = "0.2.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "Helper proc macros for the falco_event library"
Expand Down
8 changes: 4 additions & 4 deletions falco_plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falco_plugin"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "High level bindings for the Falco plugin API"
Expand All @@ -17,9 +17,9 @@ thread-safe-tables = ["dep:parking_lot"]

[dependencies]
thiserror = "1.0.58"
falco_event = { path = "../falco_event", version = "0.1.2" }
falco_plugin_api = { path = "../falco_plugin_api", version = "0.2.0" }
falco_plugin_derive = { path = "../falco_plugin_derive", version = "0.2.0" }
falco_event = { path = "../falco_event", version = "0.4.0" }
falco_plugin_api = { path = "../falco_plugin_api", version = "0.4.0" }
falco_plugin_derive = { path = "../falco_plugin_derive", version = "0.4.0" }
serde = "1.0.197"
serde_json = "1.0.114"
schemars = "0.8.16"
Expand Down
15 changes: 12 additions & 3 deletions falco_plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
falco_plugin = "0.3.0"
falco_plugin = "0.4.0"
```

The general layout of your plugin code would be:
Expand Down Expand Up @@ -92,7 +92,7 @@ edition = "2021"
crate-type = ["staticlib"]
[dependencies]
falco_plugin = "0.3.0"
falco_plugin = "0.4.0"
```

The outline of the plugin code would look like:
Expand Down Expand Up @@ -191,4 +191,13 @@ with the plugin type.
The SDK uses the [`log`] crate for logging, redirecting all messages to the Falco libs logger, so you can use
e.g. `log::info!` in your plugin without any explicit initialization. The log level defaults to `Trace`
in debug builds and to `Info` in release builds, but can be overridden by calling [`log::set_max_level`]
in your [plugin init method](`base::Plugin::new`).
in your [plugin init method](`base::Plugin::new`).

## Versioning and MSRV

The SDK consists of several crates, some are more coupled to each other, some are mostly independent. However,
to keep packaging manageable, all the crates are versioned together, i.e. a version bump in one causes
a corresponding version bump in all the other crates, even if it's not strictly necessary. This may change
in the future.

While we're in the 0.x version range, the Minimum Supported Rust Version is defined as "latest stable".
2 changes: 1 addition & 1 deletion falco_plugin_api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falco_plugin_api"
version = "0.2.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "Autogenerated bindings for the Falco plugin API"
Expand Down
2 changes: 1 addition & 1 deletion falco_plugin_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "falco_plugin_derive"
version = "0.2.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "Derive macros for the falco_plugin library"
Expand Down
6 changes: 3 additions & 3 deletions falco_plugin_runner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "falco_plugin_runner"
version = "0.1.0"
version = "0.4.0"
edition = "2021"

[dependencies]
anyhow = "1.0.89"
falco_event = { version = "0.1.4", path = "../falco_event" }
falco_plugin_api = { version = "0.2.0", path = "../falco_plugin_api" }
falco_event = { version = "0.4.0", path = "../falco_event" }
falco_plugin_api = { version = "0.4.0", path = "../falco_plugin_api" }
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"

Expand Down
7 changes: 4 additions & 3 deletions falco_plugin_tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
name = "falco_plugin_tests"
version = "0.1.0"
version = "0.4.0"
edition = "2021"
publish = false

[dependencies]
anyhow = "1.0.88"
cxx = { version = "1.0.124", features = ["c++17"] }
falco_plugin = { path = "../falco_plugin" }
falco_plugin_runner = { version = "0.1.0", path = "../falco_plugin_runner" }
falco_plugin = { version = "0.4.0", path = "../falco_plugin" }
falco_plugin_runner = { version = "0.4.0", path = "../falco_plugin_runner" }
log = "0.4.22"

[build-dependencies]
Expand Down

0 comments on commit e044e1e

Please sign in to comment.