forked from spruceid/ssi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
159 lines (144 loc) · 4.91 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[package]
name = "ssi"
version = "0.7.0"
authors = ["Spruce Systems, Inc."]
edition = "2021"
license = "Apache-2.0"
description = "Core library for Verifiable Credentials and Decentralized Identifiers."
repository = "https://github.com/spruceid/ssi/"
documentation = "https://docs.rs/ssi/"
keywords = ["ssi", "did", "vc", "vp", "jsonld"]
exclude = ["json-ld-api/*", "json-ld-normalization/*", "vc-test-suite/*"]
[features]
default = ["w3c", "ripemd-160", "eip", "tezos"]
w3c = ["ssi-ldp/w3c", "secp256k1", "ed25519", "secp256r1", "rsa"]
## enable secp256k1 signatures
secp256k1 = ["ssi-ldp/secp256k1"]
## enable secp256r1 (p256) signatures
secp256r1 = ["ssi-ldp/secp256r1"]
## enable secp384r1 (p384) signatures
secp384r1 = ["ssi-ldp/secp384r1"]
## enable ed25519 (EdDSA) signatures
ed25519 = ["ssi-ldp/ed25519", "ssi-jwk/ed25519", "ssi-jws/ed25519"]
## enable RSA signatures
rsa = ["ssi-ldp/rsa"]
## enable ripemd hashes
ripemd-160 = ["ssi-jwk/ripemd-160"]
## enable bbs
bbs = ["ssi-crypto/bbs"]
## enable aleo ecosystem signatures
aleo = ["ssi-ldp/aleo", "ssi-caips/aleo", "ssi-jws/aleo"]
## enable ethereum style signatures
eip = ["ssi-caips/eip", "ssi-jwk/eip", "ssi-ldp/eip", "ssi-crypto/keccak"]
## enable tezos style signatures
tezos = ["ssi-caips/tezos", "ssi-jwk/tezos", "ssi-jws/tezos", "ssi-ldp/tezos"]
## enable LDPs from the Solana Ecosystem
solana = ["ssi-ldp/solana"]
## Use the Ring crate for crypto operations
ring = ["ssi-jwk/ring", "ssi-jws/ring", "ssi-crypto/ring"]
http-did = ["ssi-dids/http"]
example-http-issuer = ["ssi-ldp/example-http-issuer"]
# Backward compatibility features
ed25519-dalek = ["ed25519"]
keccak = ["eip"]
sha = ["rsa"]
[dependencies]
ssi-jwk = { path = "./ssi-jwk", version = "0.1.1", default-features = false }
ssi-json-ld = { path = "./ssi-json-ld", version = "0.2.2", default-features = false }
ssi-core = { path = "./ssi-core", version = "0.1" }
ssi-dids = { path = "./ssi-dids", version = "0.1" }
ssi-crypto = { path = "./ssi-crypto", version = "0.1", default-features = false }
ssi-jws = { path = "./ssi-jws", version = "0.1", default-features = false }
ssi-jwt = { path = "./ssi-jwt", version = "0.1", default-features = false }
ssi-tzkey = { path = "./ssi-tzkey", version = "0.1", default-features = false }
ssi-ldp = { path = "./ssi-ldp", version = "0.3.0", default-features = false }
ssi-ssh = { path = "./ssi-ssh", version = "0.1", default-features = false }
ssi-ucan = { path = "./ssi-ucan", version = "0.1" }
ssi-vc = { path = "./ssi-vc", version = "0.2.0" }
ssi-zcap-ld = { path = "./ssi-zcap-ld", version = "0.1.2" }
ssi-caips = { path = "./ssi-caips", version = "0.1", default-features = false }
ssi-sd-jwt = { path = "./ssi-sd-jwt", version = "0.1" }
[workspace]
members = [
"did-tezos",
"did-jwk",
"did-key",
"did-web",
"did-ethr",
"did-sol",
"did-pkh",
"did-onion",
"did-ion",
"did-webkey",
"vc-test",
"did-test",
"ssi-caips",
"ssi-jwk",
"ssi-core",
"ssi-crypto",
"ssi-json-ld",
"ssi-dids",
"ssi-jws",
"ssi-jwt",
"ssi-sd-jwt",
"ssi-tzkey",
"ssi-ssh",
"ssi-ldp",
"ssi-ucan",
"ssi-vc",
"ssi-zcap-ld"
]
[dev-dependencies]
async-std = { version = "1.9", features = ["attributes"] }
uuid = { version = "0.8", features = ["v4", "serde"] }
serde_json = "1.0"
ssi-dids = { path = "./ssi-dids", version = "0.1", features = ["example"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# $cargo release
[workspace.metadata.release]
sign-tag = true
tag-prefix = "{{crate_name}}/"
tag-message = "Release {{crate_name}} version {{version}}."
pre-release-commit-message = "Release"
# $git-cliff --config Cargo.toml > CHANGELOG.md
[workspace.metadata.git-cliff.changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}\
{% for commit in commits %}
- [{{ commit.id | truncate(length=7, end="") }}] {{ commit.message }}\
{% endfor %}
{% endfor %}\n
"""
trim = true
[workspace.metadata.git-cliff.git]
commit_preprocessors = [
{ pattern = "\\n.*", replace = ""},
]
conventional_commits = false
filter_unconventional = false
commit_parsers = [
{ message = "^[aA]dd( |ed)", group = "Added"},
{ message = "^[fF]ix", group = "Fixed"},
{ message = "^[cC]hange", group = "Changed"},
{ message = "^[mM]ove", group = "Changed"},
{ message = "^[rR]estructure", group = "Changed"},
{ message = "^[rR]efactor", group = "Changed"},
{ message = "^[rR]emove", group = "Removed"},
{ message = ".*", group = "Other"},
]
# filter_commits = false
tag_pattern = "v[0-9]*"