diff --git a/Cargo.toml b/Cargo.toml index f247ea8e..3e4202dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ members = [ "proxmox-io", "proxmox-lang", "proxmox-metrics", + "proxmox-rest-server", "proxmox-router", "proxmox-schema", "proxmox-serde", diff --git a/Makefile b/Makefile index 19969494..92410152 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ CRATES = \ proxmox-io \ proxmox-lang \ proxmox-metrics \ + proxmox-rest-server \ proxmox-router \ proxmox-schema \ proxmox-serde \ diff --git a/proxmox-rest-server/Cargo.toml b/proxmox-rest-server/Cargo.toml index 3858aabe..d4b3cc7b 100644 --- a/proxmox-rest-server/Cargo.toml +++ b/proxmox-rest-server/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "proxmox-rest-server" -version = "0.1.0" +version = "0.2.0" authors = ["Proxmox Support Team "] edition = "2018" license = "AGPL-3" description = "REST server implementation" -# for example +exclude = [ "debian" ] + [dev-dependencies] proxmox-schema = { version = "1.3.1", features = [ "api-macro" ] } tokio = { version = "1.6", features = [ "rt-multi-thread", "signal", "process" ] } diff --git a/proxmox-rest-server/debian/changelog b/proxmox-rest-server/debian/changelog new file mode 100644 index 00000000..63afeaa6 --- /dev/null +++ b/proxmox-rest-server/debian/changelog @@ -0,0 +1,5 @@ +rust-proxmox-rest-server (0.2.0-1) stable; urgency=medium + + * initial split out of proxmox-backup workspace + + -- Proxmox Support Team Tue, 11 Oct 2022 14:16:40 +0200 diff --git a/proxmox-rest-server/debian/control b/proxmox-rest-server/debian/control new file mode 100644 index 00000000..67c0248c --- /dev/null +++ b/proxmox-rest-server/debian/control @@ -0,0 +1,104 @@ +Source: rust-proxmox-rest-server +Section: rust +Priority: optional +Build-Depends: debhelper (>= 12), + dh-cargo (>= 25), + cargo:native , + rustc:native , + libstd-rust-dev , + librust-anyhow-1+default-dev , + librust-futures-0.3+default-dev , + librust-handlebars-3+default-dev , + librust-http-0.2+default-dev , + librust-hyper-0.14+default-dev (>= 0.14.5-~~) , + librust-hyper-0.14+full-dev (>= 0.14.5-~~) , + librust-lazy-static-1+default-dev (>= 1.4-~~) , + librust-libc-0.2+default-dev , + librust-log-0.4+default-dev (>= 0.4.17-~~) , + librust-nix-0.24+default-dev , + librust-once-cell-1+default-dev (>= 1.3.1-~~) , + librust-percent-encoding-2+default-dev (>= 2.1-~~) , + librust-proxmox-async-0.4+default-dev , + librust-proxmox-compression-0.1+default-dev (>= 0.1.1-~~) , + librust-proxmox-http-0.7+client-dev , + librust-proxmox-http-0.7+default-dev , + librust-proxmox-io-1+default-dev , + librust-proxmox-lang-1+default-dev (>= 1.1-~~) , + librust-proxmox-router-1+default-dev (>= 1.3.0-~~) , + librust-proxmox-schema-1+api-macro-dev (>= 1.3.1-~~) , + librust-proxmox-schema-1+default-dev (>= 1.3.1-~~) , + librust-proxmox-schema-1+upid-api-impl-dev (>= 1.3.1-~~) , + librust-proxmox-sys-0.4+default-dev , + librust-proxmox-sys-0.4+logrotate-dev , + librust-proxmox-sys-0.4+timer-dev , + librust-proxmox-time-1+default-dev , + librust-regex-1+default-dev (>= 1.5-~~) , + librust-serde-1+default-dev , + librust-serde-1+derive-dev , + librust-serde-json-1+default-dev , + librust-tokio-1+default-dev (>= 1.6-~~) , + librust-tokio-1+process-dev (>= 1.6-~~) , + librust-tokio-1+signal-dev (>= 1.6-~~) , + librust-tokio-openssl-0.6+default-dev (>= 0.6.1-~~) , + librust-tokio-stream-0.1+default-dev , + librust-tower-service-0.3+default-dev , + librust-url-2+default-dev (>= 2.1-~~) +Maintainer: Proxmox Support Team +Standards-Version: 4.5.1 +Vcs-Git: git://git.proxmox.com/git/proxmox.git +Vcs-Browser: https://git.proxmox.com/?p=proxmox.git +Rules-Requires-Root: no + +Package: librust-proxmox-rest-server-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-anyhow-1+default-dev, + librust-futures-0.3+default-dev, + librust-handlebars-3+default-dev, + librust-http-0.2+default-dev, + librust-hyper-0.14+default-dev (>= 0.14.5-~~), + librust-hyper-0.14+full-dev (>= 0.14.5-~~), + librust-lazy-static-1+default-dev (>= 1.4-~~), + librust-libc-0.2+default-dev, + librust-log-0.4+default-dev (>= 0.4.17-~~), + librust-nix-0.24+default-dev, + librust-once-cell-1+default-dev (>= 1.3.1-~~), + librust-percent-encoding-2+default-dev (>= 2.1-~~), + librust-proxmox-async-0.4+default-dev, + librust-proxmox-compression-0.1+default-dev (>= 0.1.1-~~), + librust-proxmox-http-0.7+client-dev, + librust-proxmox-http-0.7+default-dev, + librust-proxmox-io-1+default-dev, + librust-proxmox-lang-1+default-dev (>= 1.1-~~), + librust-proxmox-router-1+default-dev (>= 1.3.0-~~), + librust-proxmox-schema-1+api-macro-dev (>= 1.3.1-~~), + librust-proxmox-schema-1+default-dev (>= 1.3.1-~~), + librust-proxmox-schema-1+upid-api-impl-dev (>= 1.3.1-~~), + librust-proxmox-sys-0.4+default-dev, + librust-proxmox-sys-0.4+logrotate-dev, + librust-proxmox-sys-0.4+timer-dev, + librust-proxmox-time-1+default-dev, + librust-regex-1+default-dev (>= 1.5-~~), + librust-serde-1+default-dev, + librust-serde-1+derive-dev, + librust-serde-json-1+default-dev, + librust-tokio-1+default-dev (>= 1.6-~~), + librust-tokio-1+process-dev (>= 1.6-~~), + librust-tokio-1+signal-dev (>= 1.6-~~), + librust-tokio-openssl-0.6+default-dev (>= 0.6.1-~~), + librust-tokio-stream-0.1+default-dev, + librust-tower-service-0.3+default-dev, + librust-url-2+default-dev (>= 2.1-~~) +Provides: + librust-proxmox-rest-server+default-dev (= ${binary:Version}), + librust-proxmox-rest-server-0-dev (= ${binary:Version}), + librust-proxmox-rest-server-0+default-dev (= ${binary:Version}), + librust-proxmox-rest-server-0.2-dev (= ${binary:Version}), + librust-proxmox-rest-server-0.2+default-dev (= ${binary:Version}), + librust-proxmox-rest-server-0.2.0-dev (= ${binary:Version}), + librust-proxmox-rest-server-0.2.0+default-dev (= ${binary:Version}) +Description: REST server implementation - Rust source code + This package contains the source for the Rust proxmox-rest-server crate, + packaged by debcargo for use with cargo and dh-cargo. diff --git a/proxmox-rest-server/debian/copyright b/proxmox-rest-server/debian/copyright new file mode 100644 index 00000000..f2f82029 --- /dev/null +++ b/proxmox-rest-server/debian/copyright @@ -0,0 +1,16 @@ +Copyright (C) 2021-2022 Proxmox Server Solutions GmbH + +This software is written by Proxmox Server Solutions GmbH + +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 . diff --git a/proxmox-rest-server/debian/debcargo.toml b/proxmox-rest-server/debian/debcargo.toml new file mode 100644 index 00000000..b7864cdb --- /dev/null +++ b/proxmox-rest-server/debian/debcargo.toml @@ -0,0 +1,7 @@ +overlay = "." +crate_src_path = ".." +maintainer = "Proxmox Support Team " + +[source] +vcs_git = "git://git.proxmox.com/git/proxmox.git" +vcs_browser = "https://git.proxmox.com/?p=proxmox.git"