-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
120 lines (112 loc) · 3.72 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
113
114
115
116
117
118
119
120
[package]
name = "lifec_registry"
authors = ["Microsoft Corporation", "Julius Liu <[email protected]>"]
description = "Framework for extending container registry functionality from the client"
license-file = "LICENSE"
readme = "README.md"
version = "0.1.0"
edition = "2021"
resolver = "2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
editor = ["lifec/editor", "imgui"]
[dependencies]
# Optional
imgui = { version = "0.9.0", optional = true }
# Required
clap = { version = "4.0.4", features = ["derive"] }
hyper = "0.14.20"
hyper-tls = "0.5.0"
lifec = { git = "https://github.com/juliusl/lifec.git", branch = "pr/refactor-workspace" }
lifec_poem = { git = "https://github.com/juliusl/lifec.git", branch = "pr/refactor-workspace" }
reality = { git = "https://github.com/juliusl/reality.git", branch = "pr/workspace-refactor" }
reality_azure = { git = "https://github.com/juliusl/reality.git", branch = "pr/workspace-refactor" }
azure_identity = { git = "https://github.com/juliusl/azure-sdk-for-rust.git", branch = "pr/block-id-conversion" }
azure_core = { git = "https://github.com/juliusl/azure-sdk-for-rust.git", branch = "pr/block-id-conversion" }
# shinsu = { git = "https://github.com/juliusl/shinsu.git", branch = "pr/v2_api" }
# lifec = { path = "../lifec" }
specs = { git = "https://github.com/amethyst/specs", features = [
"default",
"derive",
"shred-derive",
] }
logos = "0.12.1"
native-tls = "0.2.10"
poem = { version = "1.3.32", features = [
"server",
"static-files",
"native-tls",
"test",
] }
rust-embed = { version = "6.4.1", features = ["include-exclude"] }
serde = "1.0"
serde_json = "1.0.82"
tinytemplate = "1.2.1"
tokio = "1.20.1"
toml = "0.5.9"
tracing = "0.1.35"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-test = "0.2.3"
sha2 = "0.10.6"
serde_urlencoded = "0.7.1"
async-trait = "0.1.64"
base64-url = "1.4.13"
toml_edit = { version = "0.19.2", features = ["serde"] }
url = "2.4.0"
[[bin]]
name = "acr-dev"
required-features = ["editor"]
[[example]]
name = "proxy"
required-features = ["editor"]
[package.metadata.deb]
name = "acr-mirror"
depends = "jq"
maintainer-scripts = "lib/debian"
assets = [
[
"target/release/acr",
"opt/acr/bin/acr",
"755",
],
[
"lib/sh/overlaybd/install.sh",
"opt/acr/tools/overlaybd/install.sh",
"755",
],
[
"lib/sh/overlaybd/enable.sh",
"opt/acr/tools/overlaybd/enable.sh",
"755",
],
[
"lib/sh/overlaybd/enable-file-auth.sh",
"opt/acr/tools/overlaybd/enable-file-auth.sh",
"755",
],
[
"lib/sh/overlaybd/enable-http-auth.sh",
"opt/acr/tools/overlaybd/enable-http-auth.sh",
"755",
],
]
systemd-units = { unit-name = "acr-mirror", unit-scripts = "lib/systemd", enable = true, start = true }
[package.metadata.generate-rpm]
name = "acr-mirror"
license = "MIT"
assets = [
{ source = "lib/systemd/acr-mirror.service", dest = "/usr/lib/systemd/system/acr-mirror.service", mode = "644" },
{ source = "target/release/acr", dest = "/opt/acr/bin/acr", mode = "755" },
{ source = "lib/sh/overlaybd/install.sh", dest = "/opt/acr/tools/overlaybd/install.sh", mode = "755" },
{ source = "lib/sh/overlaybd/enable.sh", dest = "/opt/acr/tools/overlaybd/enable.sh", mode = "755" },
{ source = "lib/sh/overlaybd/enable-file-auth.sh", dest = "/opt/acr/tools/overlaybd/enable-file-auth.sh", mode = "755" },
{ source = "lib/sh/overlaybd/enable-http-auth.sh", dest = "/opt/acr/tools/overlaybd/enable-http-auth.sh", mode = "755" },
]
post_install_script = """
cd /opt/acr/bin
./acr init --min-init
"""
pre_uninstall_script = """
rm -rf /opt/acr/bin/.world
"""