Skip to content

Commit

Permalink
Prepare for initial re-release
Browse files Browse the repository at this point in the history
Create a couple of scripts using cargo-release to simplify bumping
versions and release management. Since we have so many crates it's a
little hairy, so I added some scripts to make it more manageable.

Set versions on all the crates we intend to publish for now. In the
future we may want to find a good way to publish opcua-codegen too, but
since it's a binary, not a crate, we will have to look into publishing
it as a cargo tool or something along those lines.

The first release will need to be done manually. Not only are we
exceeding the per minute limit of new crates (5), but cargo-release
doesn't play that well with new releases of interdependent crates. I
hope to create a proper release pipeline to automate this in the future.
  • Loading branch information
einarmo committed Jan 22, 2025
1 parent 6633616 commit 7c4ce2f
Show file tree
Hide file tree
Showing 19 changed files with 339 additions and 309 deletions.
257 changes: 37 additions & 220 deletions CHANGELOG.md

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions async-opcua-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-client"
version = "0.13.0" # OPCUARustVersion
version = "0.14.0"
description = "OPC UA client API"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand Down Expand Up @@ -29,8 +29,8 @@ tokio-util = { workspace = true }
serde = { workspace = true }


async-opcua-types = { path = "../async-opcua-types" }
async-opcua-core = { path = "../async-opcua-core" }
async-opcua-crypto = { path = "../async-opcua-crypto" }
async-opcua-nodes = { path = "../async-opcua-nodes" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-core = { path = "../async-opcua-core", version = "0.14.0" }
async-opcua-crypto = { path = "../async-opcua-crypto", version = "0.14.0" }
async-opcua-nodes = { path = "../async-opcua-nodes", version = "0.14.0" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true, version = "0.14.0" }
4 changes: 2 additions & 2 deletions async-opcua-codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-codegen"
version = "0.1.0"
version = "0.13.0"
edition = "2021"
description = "OPC UA code generation library"
authors = ["Einar Omang <[email protected]>"]
Expand All @@ -27,7 +27,7 @@ serde_yaml = { workspace = true }
syn = { version = "2.0.71", features = ["full"] }
thiserror = "1.0.63"

async-opcua-xml = { path = "../async-opcua-xml" }
async-opcua-xml = { path = "../async-opcua-xml", version = "0.14.0" }
regex = "1.10.5"
uuid = "1.10.0"
base64 = "0.22.1"
Expand Down
6 changes: 3 additions & 3 deletions async-opcua-core-namespace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-core-namespace"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA generated code for the core namespace"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand All @@ -16,5 +16,5 @@ edition = "2021"
name = "opcua_core_namespace"

[dependencies]
async-opcua-types = { path = "../async-opcua-types" }
async-opcua-nodes = { path = "../async-opcua-nodes" }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-nodes = { path = "../async-opcua-nodes", version = "0.14.0" }
6 changes: 3 additions & 3 deletions async-opcua-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-core"
version = "0.13.0" # OPCUARustVersion
version = "0.14.0"
description = "OPC UA core utils for client and server"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand All @@ -26,8 +26,8 @@ tokio = { workspace = true }
tokio-util = { workspace = true }
url = { workspace = true }

async-opcua-types = { path = "../async-opcua-types" }
async-opcua-crypto = { path = "../async-opcua-crypto" }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-crypto = { path = "../async-opcua-crypto", version = "0.14.0" }
thiserror = { workspace = true }


Expand Down
4 changes: 2 additions & 2 deletions async-opcua-crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-crypto"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA cryptography library"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand All @@ -21,7 +21,7 @@ gethostname = { workspace = true }
chrono = { workspace = true }
serde = { workspace = true }

async-opcua-types = { path = "../async-opcua-types" }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }

hmac = { workspace = true }
sha2 = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion async-opcua-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-macros"
version = "0.1.0"
version = "0.14.0"
description = "OPC UA support proc macros"
authors = ["Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand Down
8 changes: 4 additions & 4 deletions async-opcua-nodes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-nodes"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA node representation and import framework"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand All @@ -25,9 +25,9 @@ log = { workspace = true }
regex = { workspace = true }
thiserror = { workspace = true }

async-opcua-types = { path = "../async-opcua-types" }
async-opcua-macros = { path = "../async-opcua-macros" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-macros = { path = "../async-opcua-macros", version = "0.14.0" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true, version = "0.14.0" }


[dev-dependencies]
Expand Down
14 changes: 7 additions & 7 deletions async-opcua-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-server"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA server API"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand Down Expand Up @@ -44,10 +44,10 @@ tokio-util = { workspace = true }
postcard = { workspace = true }


async-opcua-types = { path = "../async-opcua-types" }
async-opcua-crypto = { path = "../async-opcua-crypto" }
async-opcua-core = { path = "../async-opcua-core" }
async-opcua-nodes = { path = "../async-opcua-nodes" }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-crypto = { path = "../async-opcua-crypto", version = "0.14.0" }
async-opcua-core = { path = "../async-opcua-core", version = "0.14.0" }
async-opcua-nodes = { path = "../async-opcua-nodes", version = "0.14.0" }

async-opcua-client = { path = "../async-opcua-client", optional = true }
async-opcua-core-namespace = { path = "../async-opcua-core-namespace", optional = true }
async-opcua-client = { path = "../async-opcua-client", optional = true, version = "0.14.0" }
async-opcua-core-namespace = { path = "../async-opcua-core-namespace", optional = true, version = "0.14.0" }
6 changes: 3 additions & 3 deletions async-opcua-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-types"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA data types"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand Down Expand Up @@ -29,11 +29,11 @@ chrono = { workspace = true }
byteorder = { workspace = true }
base64 = { workspace = true }
thiserror = { workspace = true }
async-opcua-macros = { path = "../async-opcua-macros" }

struson = { workspace = true, optional = true }

async-opcua-xml = { path = "../async-opcua-xml", optional = true }
async-opcua-macros = { path = "../async-opcua-macros", version = "0.14.0" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true, version = "0.14.0" }

[dev-dependencies]
async-opcua-types = { path = ".", features = ["xml", "json"] }
Expand Down
2 changes: 1 addition & 1 deletion async-opcua-xml/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua-xml"
version = "0.1.0"
version = "0.14.0"
edition = "2021"
description = "OPC UA XML loading library"
authors = ["Einar Omang <[email protected]>"]
Expand Down
21 changes: 11 additions & 10 deletions async-opcua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-opcua"
version = "0.13.0"
version = "0.14.0"
description = "OPC UA client and server API"
authors = ["Adam Lock <[email protected]>", "Einar Omang <[email protected]>"]
homepage = "https://github.com/freeopcua/rust-opcua"
Expand Down Expand Up @@ -40,23 +40,24 @@ discovery-server-registration = [
"async-opcua-server/discovery-server-registration",
]
# Methods for XML parsing and loading of nodesets from XML.
xml = ["async-opcua-types/xml", "async-opcua-nodes/xml"]
xml = ["async-opcua-types/xml", "async-opcua-nodes/xml", "async-opcua-xml"]


[dependencies]
chrono = { workspace = true }
env_logger = { version = "0.10", optional = true }
log = { workspace = true }

async-opcua-types = { path = "../async-opcua-types" }
async-opcua-crypto = { path = "../async-opcua-crypto" }
async-opcua-core = { path = "../async-opcua-core" }
async-opcua-client = { path = "../async-opcua-client", optional = true }
async-opcua-server = { path = "../async-opcua-server", optional = true, default-features = false }
async-opcua-nodes = { path = "../async-opcua-nodes", optional = true }
async-opcua-core-namespace = { path = "../async-opcua-core-namespace", optional = true }
async-opcua-types = { path = "../async-opcua-types", version = "0.14.0" }
async-opcua-crypto = { path = "../async-opcua-crypto", version = "0.14.0" }
async-opcua-core = { path = "../async-opcua-core", version = "0.14.0" }
async-opcua-client = { path = "../async-opcua-client", optional = true, version = "0.14.0" }
async-opcua-server = { path = "../async-opcua-server", optional = true, default-features = false, version = "0.14.0" }
async-opcua-nodes = { path = "../async-opcua-nodes", optional = true, version = "0.14.0" }
async-opcua-core-namespace = { path = "../async-opcua-core-namespace", optional = true, version = "0.14.0" }
async-opcua-xml = { path = "../async-opcua-xml", optional = true, version = "0.14.0" }

async-opcua-macros = { path = "../async-opcua-macros" }
async-opcua-macros = { path = "../async-opcua-macros", version = "0.14.0" }

[dev-dependencies]
async-trait = { workspace = true }
Expand Down
3 changes: 3 additions & 0 deletions async-opcua/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ pub use opcua_core as core;
pub use opcua_crypto as crypto;
pub use opcua_types as types;

#[cfg(feature = "xml")]
pub use opcua_xml as xml;

#[cfg(feature = "generated-address-space")]
pub use opcua_core_namespace as core_namespace;
36 changes: 0 additions & 36 deletions docs/migration.md

This file was deleted.

Loading

0 comments on commit 7c4ce2f

Please sign in to comment.