mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-04 06:42:00 +00:00
add proxmox-borrow crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
bd67ccc1b3
commit
7db0a3c6df
@ -2,6 +2,7 @@
|
||||
members = [
|
||||
"proxmox",
|
||||
"proxmox-api-macro",
|
||||
"proxmox-borrow",
|
||||
"proxmox-http",
|
||||
"proxmox-sortable-macro",
|
||||
"proxmox-tfa",
|
||||
|
1
Makefile
1
Makefile
@ -3,6 +3,7 @@
|
||||
CRATES = \
|
||||
proxmox \
|
||||
proxmox-api-macro \
|
||||
proxmox-borrow \
|
||||
proxmox-http \
|
||||
proxmox-sortable-macro \
|
||||
proxmox-tfa \
|
||||
|
11
proxmox-borrow/Cargo.toml
Normal file
11
proxmox-borrow/Cargo.toml
Normal file
@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "proxmox-borrow"
|
||||
version = "1.0.0"
|
||||
authors = ["Proxmox Support Team <support@proxmox.com>"]
|
||||
edition = "2018"
|
||||
license = "AGPL-3"
|
||||
description = "contains the Tied type to tie a value with a lifetime to the value it borrows from"
|
||||
|
||||
exclude = [ "debian" ]
|
||||
|
||||
[dependencies]
|
5
proxmox-borrow/debian/changelog
Normal file
5
proxmox-borrow/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
rust-proxmox-borrow (1.0.0-1) stable; urgency=medium
|
||||
|
||||
* initial split out of `librust-proxmox-dev`
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Mon, 04 Oct 2021 11:38:53 +0200
|
32
proxmox-borrow/debian/control
Normal file
32
proxmox-borrow/debian/control
Normal file
@ -0,0 +1,32 @@
|
||||
Source: rust-proxmox-borrow
|
||||
Section: rust
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>= 12),
|
||||
dh-cargo (>= 24),
|
||||
cargo:native <!nocheck>,
|
||||
rustc:native <!nocheck>,
|
||||
libstd-rust-dev <!nocheck>
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
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
|
||||
|
||||
# FIXME (packages."(name)".section) debcargo auto-generated summaries are very long, consider overriding
|
||||
|
||||
Package: librust-proxmox-borrow-dev
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
${misc:Depends}
|
||||
Provides:
|
||||
librust-proxmox-borrow+default-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1+default-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1.0-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1.0+default-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1.0.0-dev (= ${binary:Version}),
|
||||
librust-proxmox-borrow-1.0.0+default-dev (= ${binary:Version})
|
||||
Description: Contains the Tied type to tie a value with a lifetime to the value it borrows from - Rust source code
|
||||
This package contains the source for the Rust proxmox-borrow crate, packaged by
|
||||
debcargo for use with cargo and dh-cargo.
|
16
proxmox-borrow/debian/copyright
Normal file
16
proxmox-borrow/debian/copyright
Normal file
@ -0,0 +1,16 @@
|
||||
Copyright (C) 2021 Proxmox Server Solutions GmbH
|
||||
|
||||
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
|
||||
|
||||
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 <http://www.gnu.org/licenses/>.
|
7
proxmox-borrow/debian/debcargo.toml
Normal file
7
proxmox-borrow/debian/debcargo.toml
Normal 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"
|
@ -32,7 +32,7 @@ use std::mem::ManuallyDrop;
|
||||
/// //}
|
||||
///
|
||||
/// // Instead we use:
|
||||
/// use proxmox::tools::borrow::Tied;
|
||||
/// use proxmox_borrow::Tied;
|
||||
/// struct Usage {
|
||||
/// tied: Tied<Owner, Borrow<'static>>,
|
||||
/// }
|
@ -6,7 +6,6 @@ use anyhow::*;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
pub mod as_any;
|
||||
pub mod borrow;
|
||||
pub mod byte_buffer;
|
||||
pub mod common_regex;
|
||||
pub mod constnamedbitmap;
|
||||
|
Loading…
Reference in New Issue
Block a user