add proxmox-rrd-api-types crate - moved out of proxmox-rrd

so we can access them from wasm without pulling in proxmox-rrd as it
also pulls in sys...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-09-18 15:55:43 +02:00
parent e57a65879e
commit 0177b1d975
8 changed files with 47 additions and 5 deletions

View File

@ -30,6 +30,7 @@ members = [
"proxmox-rest-server",
"proxmox-router",
"proxmox-rrd",
"proxmox-rrd-api-types",
"proxmox-schema",
"proxmox-section-config",
"proxmox-serde",

View File

@ -0,0 +1,15 @@
[package]
name = "proxmox-rrd-api-types"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
exclude.workspace = true
description = "Types for RRD values."
[dependencies]
serde = { workspace = true, features = ["derive"] }
serde_plain.workspace = true
proxmox-schema = { workspace = true, features = [ "api-macro" ] }

View File

@ -0,0 +1,5 @@
rust-proxmox-rrd-api-types (1.0.0-1) bookworm; urgency=medium
* split out of proxmox-rrd
-- Proxmox Support Team <support@proxmox.com> Wed, 18 Sep 2024 15:24:01 +0200

View File

@ -0,0 +1,18 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files:
*
Copyright: 2024 Proxmox Server Solutions GmbH <support@proxmox.com>
License: AGPL-3.0-or-later
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.

View File

@ -0,0 +1,7 @@
overlay = "."
crate_src_path = ".."
maintainer = "Proxmox Support Team <support@proxmox.com>"
[source]
vcs_git = "git://git.proxmox.com/git/proxmox.git"
vcs_browser = "https://git.proxmox.com/?p=proxmox.git"

View File

@ -17,7 +17,7 @@ bitflags.workspace = true
crossbeam-channel.workspace = true
log.workspace = true
nix.workspace = true
serde.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_cbor.workspace = true
serde_json.workspace = true
serde_plain.workspace = true
@ -28,5 +28,4 @@ proxmox-time.workspace = true
[features]
default = [ "rrd_v1" ]
api-types = []
rrd_v1 = []

View File

@ -17,6 +17,3 @@ pub use rrd::Entry;
mod cache;
pub use cache::*;
#[cfg(feature = "api-types")]
pub mod api_types;