Skip to content

Commit 037b0d3

Browse files
authored
feat: Introduce openstack_types crate (#1122)
Bootstrap new crate to host type definitions common between sdk, cli and tui.
1 parent 15842da commit 037b0d3

File tree

26 files changed

+740
-1
lines changed

26 files changed

+740
-1
lines changed

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ members = [
44
"openstack_sdk",
55
"openstack_cli",
66
"openstack_tui",
7+
"openstack_types",
78
"structable_derive",
89
"xtask",
910
"fuzz"
1011
]
11-
default-members = ["openstack_cli", "openstack_sdk", "openstack_tui"]
12+
default-members = ["openstack_cli", "openstack_sdk", "openstack_tui", "openstack_types"]
1213

1314
[workspace.package]
1415
license = "Apache-2.0"

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ COPY Cargo.toml Cargo.lock /usr/src/openstack/
1717
COPY openstack_sdk/Cargo.toml /usr/src/openstack/openstack_sdk/
1818
COPY openstack_cli/Cargo.toml /usr/src/openstack/openstack_cli/
1919
COPY openstack_tui/Cargo.toml /usr/src/openstack/openstack_tui/
20+
COPY openstack_types/Cargo.toml /usr/src/openstack/openstack_types/
2021
COPY structable_derive/Cargo.toml /usr/src/openstack/structable_derive/
2122
COPY xtask/Cargo.toml /usr/src/openstack/xtask/
2223
COPY fuzz/Cargo.toml /usr/src/openstack/fuzz/
@@ -29,6 +30,7 @@ RUN mkdir -p openstack/openstack_cli/src/bin && touch openstack/openstack_cli/sr
2930
mkdir -p /usr/src/openstack/xtask/src && touch openstack/xtask/src/lib.rs &&\
3031
mkdir -p openstack/fuzz/src && touch openstack/fuzz/src/lib.rs &&\
3132
mkdir -p openstack/openstack_sdk/examples &&\
33+
mkdir -p openstack/openstack_types/src && touch openstack/openstack_types/src/lib.rs &&\
3234
touch openstack/openstack_sdk/examples/query_find.rs &&\
3335
touch openstack/openstack_sdk/examples/paged.rs &&\
3436
touch openstack/openstack_sdk/examples/query.rs &&\

openstack_types/Cargo.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[package]
2+
name = "openstack_types"
3+
description = "OpenStack Types"
4+
version = "0.20.1"
5+
keywords = ["api", "openstack"]
6+
categories = ["api-bindings"]
7+
authors = ["Artem Goncharov (gtema)"]
8+
rust-version.workspace = true
9+
edition.workspace = true
10+
license.workspace = true
11+
homepage.workspace = true
12+
repository.workspace = true
13+
14+
[features]
15+
default = [
16+
"block_storage",
17+
"compute",
18+
"container_infra",
19+
"dns",
20+
"identity",
21+
"image",
22+
"load_balancer",
23+
"network",
24+
"object_store",
25+
"placement"
26+
]
27+
block_storage = []
28+
compute = []
29+
container_infra = []
30+
dns = []
31+
identity = []
32+
image = []
33+
load_balancer = []
34+
network = []
35+
object_store = []
36+
placement = []
37+
38+
[dependencies]
39+
chrono = { workspace= true }
40+
derive_builder = { workspace = true }
41+
serde = { workspace = true }
42+
serde_json = {workspace = true}
43+
thiserror = { workspace = true }
44+
tracing = { workspace = true}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
4+
//
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
// See the License for the specific language governing permissions and
11+
// limitations under the License.
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
15+
//! Block Storage API types
16+
//!
17+
18+
pub mod v3;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
4+
//
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
// See the License for the specific language governing permissions and
11+
// limitations under the License.
12+
//
13+
// SPDX-License-Identifier: Apache-2.0
14+
//
15+
// WARNING: This file is automatically generated from OpenAPI schema using
16+
// `openstack-codegenerator`.
17+
18+
//! `Block_storage` Service bindings

0 commit comments

Comments
 (0)