open62541 0.11.0

High-level, safe bindings for the C99 library open62541, an open source and free implementation of OPC UA (OPC Unified Architecture).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "open62541"
version = "0.11.0"
authors = ["HMI Project"]
build = false
include = [
    "src/",
    "README.md",
    "CHANGELOG.md",
    "LICENSES/MPL-2.0.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-level, safe bindings for the C99 library open62541, an open source and free implementation of OPC UA (OPC Unified Architecture)."
homepage = "https://github.com/HMIProject/open62541"
documentation = "https://docs.rs/open62541"
readme = "README.md"
keywords = [
    "opcua",
    "plc",
    "automation",
    "hardware",
    "protocol",
]
categories = [
    "network-programming",
    "embedded",
    "api-bindings",
]
license = "MPL-2.0"
repository = "https://github.com/HMIProject/open62541.git"

[features]
default = [
    "serde",
    "time",
    "tokio",
    "uuid",
]
mbedtls = [
    "dep:zeroize",
    "open62541-sys/mbedtls",
]
serde = [
    "dep:serde",
    "dep:serde_json",
    "time?/formatting",
    "time?/serde",
    "uuid?/serde",
]
time = ["dep:time"]
tokio = ["dep:tokio"]
uuid = ["dep:uuid"]
x509 = ["dep:x509-certificate"]

[lib]
name = "open62541"
path = "src/lib.rs"

[dependencies.futures-channel]
version = "0.3.30"

[dependencies.futures-core]
version = "0.3.30"
default-features = false

[dependencies.log]
version = "0.4.20"

[dependencies.open62541-sys]
version = "0.5.6"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.paste]
version = "1.0.14"

[dependencies.serde]
version = "1.0.194"
optional = true

[dependencies.serde_json]
version = "1.0.111"
optional = true

[dependencies.thiserror]
version = "2.0.3"

[dependencies.time]
version = "0.3.38"
optional = true

[dependencies.tokio]
version = "1.38.2"
features = [
    "rt-multi-thread",
    "sync",
    "time",
]
optional = true

[dependencies.uuid]
version = "1.16.0"
optional = true

[dependencies.x509-certificate]
version = "0.25.0"
optional = true

[dependencies.zeroize]
version = "1.8.1"
optional = true

[dev-dependencies.anyhow]
version = "1.0.79"

[dev-dependencies.env_logger]
version = "0.11.1"

[dev-dependencies.futures]
version = "0.3.30"

[dev-dependencies.itertools]
version = "0.14.0"

[dev-dependencies.rand]
version = "0.9.2"

[dev-dependencies.time]
version = "0.3.38"
features = ["macros"]

[dev-dependencies.tokio]
version = "1.35.1"
features = [
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
absolute_paths = "allow"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_conversions = "warn"
as_ptr_cast_mut = "warn"
as_underscore = "warn"
cast_possible_truncation = "warn"
clone_on_ref_ptr = "warn"
default_trait_access = "warn"
enum_variant_names = "warn"
error_impl_error = "warn"
expect_used = "allow"
fallible_impl_from = "warn"
format_push_string = "warn"
get_unwrap = "warn"
index_refutable_slice = "warn"
indexing_slicing = "warn"
manual_assert = "warn"
match_wild_err_arm = "warn"
missing_assert_message = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "warn"
mod_module_files = "warn"
module_name_repetitions = "allow"
panic = "allow"
panic_in_result_fn = "warn"
should_panic_without_expect = "warn"
string_slice = "warn"
unimplemented = "warn"
unnecessary_self_imports = "warn"
unreachable = "allow"
unwrap_in_result = "allow"
unwrap_used = "allow"
verbose_file_reads = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "warn"
warnings = "warn"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.if_let_rescope]
level = "allow"
priority = 0

[lints.rust.keyword_idents]
level = "warn"
priority = -1

[lints.rust.let_underscore]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.refining_impl_trait]
level = "warn"
priority = -1

[lints.rust.rust_2018_compatibility]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1

[lints.rust.tail_expr_drop_order]
level = "allow"
priority = 0

[lints.rust.unused]
level = "warn"
priority = -1