-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcode_gen_config.yml
51 lines (51 loc) · 1.67 KB
/
code_gen_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
extra_header: |
// OPCUA for Rust
// SPDX-License-Identifier: MPL-2.0
// Copyright (C) 2017-2024 Adam Lock, Einar Omang
targets:
- type: types
file_path: schemas/1.05/Opc.Ua.Types.bsd
output_dir: async-opcua-types/src/generated/types
enums_single_file: true
types_import_map:
Argument:
path: "crate::argument"
has_default: true
base_type: "ua:ExtensionObject"
add_to_type_loader: true
DataTypeDefinition:
path: "crate::data_type_definition"
has_default: false
base_type: "ua:ExtensionObject"
add_to_type_loader: false
extra_header: |
#[allow(unused)]
mod opcua { pub use crate as types; }
default_excluded:
- AnonymousIdentityToken
- type: nodes
file_path: schemas/1.05/Opc.Ua.NodeSet2.xml
output_dir: async-opcua-core-namespace/src/generated
max_nodes_per_file: 100
extra_header: |
#[allow(unused)]
mod opcua { pub use opcua_types as types; pub use opcua_nodes as nodes; }
types:
- file_path: schemas/1.05/Opc.Ua.Types.xsd
root_path: opcua::types
own_namespaces:
- "http://opcfoundation.org/UA/"
imported_namespaces: []
name: CoreNamespace
events:
output_dir: async-opcua-core-namespace/src/events
extra_header: |
#[allow(unused)]
mod opcua { pub use opcua_types as types; pub use opcua_nodes as nodes; pub use opcua_nodes::{Event, EventField}; }
#[allow(unused)]
use opcua_types as types;
- type: ids
file_path: schemas/1.05/NodeIds.csv
extra_header: |
mod opcua { pub use crate as types; }
output_file: async-opcua-types/src/generated/node_ids.rs