-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
112 lines (95 loc) · 3.44 KB
/
Cargo.toml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[package]
name = "fog05-hypervisor-native"
version = "0.3.0-alpha1"
repository = "https://github.com/eclipse-fog05/fog05-hypervisor-native"
homepage = "http://fog05.io"
authors = ["gabrik <[email protected]>"]
edition = "2018"
license = " EPL-2.0 OR Apache-2.0"
description = "fog05: The End-to-End Compute, Storage and Networking Virtualisation solution."
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-std = { version = "=1.9.0", features = ["attributes"] }
zenoh = { git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "branch_0.5.0-beta.9"}
zenoh-util = { git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "branch_0.5.0-beta.9" }
zrpc = { git = "https://github.com/atolab/zenoh-rpc.git", branch = "old-api" }
znrpc-macros = { git = "https://github.com/atolab/zenoh-rpc.git", branch = "old-api" }
uhlc = "0.3"
async-trait = "0.1.36"
futures = "0.3.5"
thiserror = "1.0"
serde_derive = "1.0.55"
serde = { version = "1.0.55", features = ["derive"] }
serde_json = "1.0.55"
serde_yaml = "0.8.13"
semver = { version = "1.0.4", features = ["serde"]}
uuid = { version = "0.8.1", features = ["serde", "v4"] }
base64 = "0.13.0"
url = "2.1.1"
fog05-sdk = { git = "https://github.com/eclipse-fog05/fog05.git", branch = "master" }
async-ctrlc ={version = "1.2.0", features = ["stream"]}
clap = "2.33"
structopt = "0.3.13"
log = "0.4"
env_logger = "0.9"
git-version = "0.3.4"
nix = {version = "0.23.0"}
signal-hook = "0.3.4"
signal-hook-async-std = "0.2.1"
caps = {version = "0.5.0", optional = true}
sysinfo = "0.20"
[features]
isolation = ["caps"]
default = ["isolation"]
[[bin]]
name = "native-hypervisor"
path = "bin/native-hypervisor.rs"
test = false
bench = false
[[bin]]
name = "native-isolate"
path = "bin/native-isolate.rs"
test = false
bench = false
[profile.release]
debug=false
lto = true
codegen-units = 1
opt-level = 3
panic = "abort"
# Debian package configuration
[package.metadata.deb]
maintainer = "ADLINK fog05 team <[email protected]>"
copyright = "2020, ADLINK Technology Inc"
extended-description = "Eclipse fog05 Linux Binaries Plugin"
license-file = ["LICENSE.md", "0"]
maintainer-scripts = "resources/debian/"
depends = "fog05-agent (>= 0.3 ), fog05-agent (<< 0.4 ), $auto"
section = "utils"
priority = "optional"
assets = [
# binary
["target/release/native-hypervisor", "/usr/bin/fos-hv-native", "755"],
["target/release/native-isolate", "/usr/bin/native-isolate", "755"],
# assets
["etc/*", "/etc/fos/native-hypervisor", "644"],
["var/*", "/var/fos/native-hypervisor", "644"],
["resources/fos-hv-native.service", "/lib/systemd/system/fos-hv-native.service", "644"],
]
conf-files = ["/etc/fos/native-hypervisor/config.yaml"]
[package.metadata.deb.systemd-units]
unit-scripts = "resources/"
unit-name = "fos-hv-native.service"
# RPM package configuration
[package.metadata.rpm]
package = "fog05-native-hypervisor"
[package.metadata.rpm.cargo]
buildflags = ["--release"]
[package.metadata.rpm.targets]
native-hypervisor = { path = "/usr/bin/fos-hv-native" }
native-isolate = { path = "/usr/bin/native-isolate" }
[package.metadata.rpm.files]
"../etc/config.yaml" = { path = "/etc/fos/native-hypervisor/config.yaml", mode = "644", username = "fos" }
"../var/placeholder" = { path = "/var/fos/native-hypervisor/placeholder", username = "fos" }
"../resources/fos-hv-native.service" = { path = "/lib/systemd/system/fos-hv-native.service" }