Cargo Features
async-opcua has no features set by default.
[dependencies]
async-opcua = { version = "0.14.0", features = ["all", "server", "base-server", "client", "console-logging", "json", "generated-address-space", "discovery-server-registration", "xml"] }
- all = client, console-logging, server
- server all? = base-server, generated-address-space
-
Server default settings
- base-server server? = async-opcua-nodes, async-opcua-server
-
Base server, without the core address space.
- client all? = async-opcua-client
-
Client default settings
- console-logging all? = env_logger
-
Console logging just installs a logger that writes out to the screen, useful for general logging
Affects
async-opcua::console_logging
… - json
-
The json feature adds serialize/deserialize to all OPC-UA types.
Enables json of async-opcua-types
- generated-address-space server? = async-opcua-core-namespace
-
Includes all the code to populate the address space with the default node set. This is something that embedded systems may or may not require.
Enables generated-address-space of async-opcua-server
- discovery-server-registration
-
Allows a server to register itself with a local discovery server. It does so by becoming a client to the LDS,
which brings in a dependency to async-opcua-client. Omitting the feature saves some memory.Enables discovery-server-registration of async-opcua-server
- xml = async-opcua-xml
-
Methods for XML parsing and loading of nodesets from XML.
Enables xml of async-opcua-nodes and async-opcua-types
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.