Skip to content

Commit 710ca86

Browse files
Merge pull request #335 from marvin-hansen/main
Removed last residual macros from main crate.
2 parents 99ba62a + fe3065d commit 710ca86

File tree

51 files changed

+1871
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1871
-252
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/scripts/sbom.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# SPDX-License-Identifier: MIT
3+
# Copyright (c) "2025" . The DeepCausality Authors and Contributors. All Rights Reserved.
4+
#
5+
6+
set -o errexit
7+
set -o nounset
8+
set -o pipefail
9+
10+
CRATES=(
11+
"deep_causality"
12+
"deep_causality_algorithms"
13+
"deep_causality_data_structures"
14+
"deep_causality_macros"
15+
"deep_causality_num"
16+
"deep_causality_rand"
17+
"deep_causality_tensor"
18+
"deep_causality_uncertain"
19+
"ultragraph"
20+
)
21+
22+
for CRATE_NAME in "${CRATES[@]}"; do
23+
echo "Generating SBOM for crate: $CRATE_NAME"
24+
25+
if ! cargo sbom --cargo-package "$CRATE_NAME" --output-format=spdx_json_2_3 > "$CRATE_NAME"/sbom.spdx.json &&
26+
sha256sum -a 256 "$CRATE_NAME"/sbom.spdx.json > "$CRATE_NAME"/sbom.spdx.json.sha;
27+
28+
then
29+
echo "Failed to generate SBOM for $CRATE_NAME"
30+
fi
31+
done
32+
33+
echo "SBOM generation complete."
34+
35+

deep_causality/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ path = "../deep_causality_data_structures"
3636
version = "0.10"
3737

3838

39-
[dependencies.deep_causality_macros]
40-
path = "../deep_causality_macros"
41-
version = "0.8"
42-
43-
4439
[dependencies.ultragraph]
4540
path = "../ultragraph"
4641
version = "0.8"

deep_causality/sbom.spdx.json

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
{
2+
"SPDXID": "SPDXRef-DOCUMENT",
3+
"creationInfo": {
4+
"created": "2025-09-22T06:19:51Z",
5+
"creators": [
6+
"Tool: cargo-sbom-v0.10.0"
7+
]
8+
},
9+
"dataLicense": "CC0-1.0",
10+
"documentNamespace": "https://spdx.org/spdxdocs/deep_causality-87b95009-e50e-4cdf-9a35-cde5b5dcaf5c",
11+
"files": [
12+
{
13+
"SPDXID": "SPDXRef-File-deep_causality",
14+
"checksums": [
15+
{
16+
"algorithm": "SHA1",
17+
"checksumValue": "0fb7d9b565848919f2a4e467c22e12f61c68071e"
18+
}
19+
],
20+
"fileName": "./Cargo.lock",
21+
"fileTypes": [
22+
"SOURCE",
23+
"TEXT"
24+
]
25+
}
26+
],
27+
"name": "deep_causality",
28+
"packages": [
29+
{
30+
"SPDXID": "SPDXRef-Package-deep--causality--data--structures-0.10.0",
31+
"description": "Data structures for for deep_causality crate.",
32+
"downloadLocation": "NONE",
33+
"licenseConcluded": "MIT",
34+
"licenseDeclared": "MIT",
35+
"name": "deep_causality_data_structures",
36+
"versionInfo": "0.10.0"
37+
},
38+
{
39+
"SPDXID": "SPDXRef-Package-wit-bindgen-0.46.0",
40+
"description": "Rust bindings generator and runtime support for WIT and the component model.\nUsed when compiling Rust programs to the component model.\n",
41+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
42+
"externalRefs": [
43+
{
44+
"referenceCategory": "PACKAGE-MANAGER",
45+
"referenceLocator": "pkg:cargo/[email protected]",
46+
"referenceType": "purl"
47+
}
48+
],
49+
"homepage": "https://github.com/bytecodealliance/wit-bindgen",
50+
"licenseConcluded": "Apache-2.0 OR Apache-2.0 OR MIT",
51+
"licenseDeclared": "Apache-2.0 OR Apache-2.0 OR MIT",
52+
"name": "wit-bindgen",
53+
"versionInfo": "0.46.0"
54+
},
55+
{
56+
"SPDXID": "SPDXRef-Package-wasip2-1.0.1-plus-wasi-0.2.4",
57+
"description": "WASIp2 API bindings for Rust",
58+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
59+
"externalRefs": [
60+
{
61+
"referenceCategory": "PACKAGE-MANAGER",
62+
"referenceLocator": "pkg:cargo/[email protected]%2Bwasi-0.2.4",
63+
"referenceType": "purl"
64+
}
65+
],
66+
"licenseConcluded": "Apache-2.0 OR Apache-2.0 OR MIT",
67+
"licenseDeclared": "Apache-2.0 OR Apache-2.0 OR MIT",
68+
"name": "wasip2",
69+
"versionInfo": "1.0.1+wasi-0.2.4"
70+
},
71+
{
72+
"SPDXID": "SPDXRef-Package-deep--causality--num-0.1.1",
73+
"description": "Number utils for for deep_causality crate.",
74+
"downloadLocation": "NONE",
75+
"licenseConcluded": "MIT",
76+
"licenseDeclared": "MIT",
77+
"name": "deep_causality_num",
78+
"versionInfo": "0.1.1"
79+
},
80+
{
81+
"SPDXID": "SPDXRef-Package-deep--causality--rand-0.1.1",
82+
"description": "Random number utils for for deep_causality crate.",
83+
"downloadLocation": "NONE",
84+
"licenseConcluded": "MIT",
85+
"licenseDeclared": "MIT",
86+
"name": "deep_causality_rand",
87+
"versionInfo": "0.1.1"
88+
},
89+
{
90+
"SPDXID": "SPDXRef-Package-getrandom-0.3.3",
91+
"description": "A small cross-platform library for retrieving random data from system source",
92+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
93+
"externalRefs": [
94+
{
95+
"referenceCategory": "PACKAGE-MANAGER",
96+
"referenceLocator": "pkg:cargo/[email protected]",
97+
"referenceType": "purl"
98+
}
99+
],
100+
"licenseConcluded": "MIT OR Apache-2.0",
101+
"licenseDeclared": "MIT OR Apache-2.0",
102+
"name": "getrandom",
103+
"versionInfo": "0.3.3"
104+
},
105+
{
106+
"SPDXID": "SPDXRef-Package-libc-0.2.175",
107+
"description": "Raw FFI bindings to platform libraries like libc.",
108+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
109+
"externalRefs": [
110+
{
111+
"referenceCategory": "PACKAGE-MANAGER",
112+
"referenceLocator": "pkg:cargo/[email protected]",
113+
"referenceType": "purl"
114+
}
115+
],
116+
"licenseConcluded": "MIT OR Apache-2.0",
117+
"licenseDeclared": "MIT OR Apache-2.0",
118+
"name": "libc",
119+
"versionInfo": "0.2.175"
120+
},
121+
{
122+
"SPDXID": "SPDXRef-Package-r-efi-5.3.0",
123+
"description": "UEFI Reference Specification Protocol Constants and Definitions",
124+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
125+
"externalRefs": [
126+
{
127+
"referenceCategory": "PACKAGE-MANAGER",
128+
"referenceLocator": "pkg:cargo/[email protected]",
129+
"referenceType": "purl"
130+
}
131+
],
132+
"homepage": "https://github.com/r-efi/r-efi/wiki",
133+
"licenseConcluded": "MIT OR Apache-2.0 OR LGPL-2.1-or-later",
134+
"licenseDeclared": "MIT OR Apache-2.0 OR LGPL-2.1-or-later",
135+
"name": "r-efi",
136+
"versionInfo": "5.3.0"
137+
},
138+
{
139+
"SPDXID": "SPDXRef-Package-cfg-if-1.0.3",
140+
"description": "A macro to ergonomically define an item depending on a large number of #[cfg]\nparameters. Structured like an if-else chain, the first matching branch is the\nitem that gets emitted.\n",
141+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
142+
"externalRefs": [
143+
{
144+
"referenceCategory": "PACKAGE-MANAGER",
145+
"referenceLocator": "pkg:cargo/[email protected]",
146+
"referenceType": "purl"
147+
}
148+
],
149+
"licenseConcluded": "MIT OR Apache-2.0",
150+
"licenseDeclared": "MIT OR Apache-2.0",
151+
"name": "cfg-if",
152+
"versionInfo": "1.0.3"
153+
},
154+
{
155+
"SPDXID": "SPDXRef-Package-ultragraph-0.8.6",
156+
"description": "Hypergraph data structure.",
157+
"downloadLocation": "NONE",
158+
"homepage": "https://github.com/deepcausality/deep_causality/tree/main/ultragraph",
159+
"licenseConcluded": "MIT",
160+
"licenseDeclared": "MIT",
161+
"name": "ultragraph",
162+
"versionInfo": "0.8.6"
163+
},
164+
{
165+
"SPDXID": "SPDXRef-Package-deep--causality-0.11.3",
166+
"description": "Computational causality library. Provides causality graph, collections, context and causal reasoning.",
167+
"downloadLocation": "NONE",
168+
"homepage": "https://deepcausality.com/about/",
169+
"licenseConcluded": "MIT",
170+
"licenseDeclared": "MIT",
171+
"name": "deep_causality",
172+
"versionInfo": "0.11.3"
173+
},
174+
{
175+
"SPDXID": "SPDXRef-Package-deep--causality--uncertain-0.2.2",
176+
"description": "A First-Order Type for Uncertain Programming for the DeepCausality project.'",
177+
"downloadLocation": "NONE",
178+
"licenseConcluded": "MIT",
179+
"licenseDeclared": "MIT",
180+
"name": "deep_causality_uncertain",
181+
"versionInfo": "0.2.2"
182+
},
183+
{
184+
"SPDXID": "SPDXRef-Package-wasi-0.14.7-plus-wasi-0.2.4",
185+
"description": "WASI API bindings for Rust",
186+
"downloadLocation": "registry+https://github.com/rust-lang/crates.io-index",
187+
"externalRefs": [
188+
{
189+
"referenceCategory": "PACKAGE-MANAGER",
190+
"referenceLocator": "pkg:cargo/[email protected]%2Bwasi-0.2.4",
191+
"referenceType": "purl"
192+
}
193+
],
194+
"licenseConcluded": "Apache-2.0 OR Apache-2.0 OR MIT",
195+
"licenseDeclared": "Apache-2.0 OR Apache-2.0 OR MIT",
196+
"name": "wasi",
197+
"versionInfo": "0.14.7+wasi-0.2.4"
198+
}
199+
],
200+
"relationships": [
201+
{
202+
"relatedSpdxElement": "SPDXRef-File-deep_causality",
203+
"relationshipType": "DESCRIBES",
204+
"spdxElementId": "SPDXRef-DOCUMENT"
205+
},
206+
{
207+
"relatedSpdxElement": "SPDXRef-Package-ultragraph-0.8.6",
208+
"relationshipType": "DEPENDS_ON",
209+
"spdxElementId": "SPDXRef-Package-deep--causality-0.11.3"
210+
},
211+
{
212+
"relatedSpdxElement": "SPDXRef-Package-deep--causality--num-0.1.1",
213+
"relationshipType": "DEPENDS_ON",
214+
"spdxElementId": "SPDXRef-Package-deep--causality--rand-0.1.1"
215+
},
216+
{
217+
"relatedSpdxElement": "SPDXRef-Package-cfg-if-1.0.3",
218+
"relationshipType": "DEPENDS_ON",
219+
"spdxElementId": "SPDXRef-Package-getrandom-0.3.3"
220+
},
221+
{
222+
"relatedSpdxElement": "SPDXRef-Package-libc-0.2.175",
223+
"relationshipType": "DEPENDS_ON",
224+
"spdxElementId": "SPDXRef-Package-getrandom-0.3.3"
225+
},
226+
{
227+
"relatedSpdxElement": "SPDXRef-Package-getrandom-0.3.3",
228+
"relationshipType": "DEPENDS_ON",
229+
"spdxElementId": "SPDXRef-Package-deep--causality--rand-0.1.1"
230+
},
231+
{
232+
"relatedSpdxElement": "SPDXRef-Package-deep--causality--rand-0.1.1",
233+
"relationshipType": "DEPENDS_ON",
234+
"spdxElementId": "SPDXRef-Package-deep--causality--uncertain-0.2.2"
235+
},
236+
{
237+
"relatedSpdxElement": "SPDXRef-Package-deep--causality--data--structures-0.10.0",
238+
"relationshipType": "DEPENDS_ON",
239+
"spdxElementId": "SPDXRef-Package-deep--causality-0.11.3"
240+
},
241+
{
242+
"relatedSpdxElement": "SPDXRef-Package-deep--causality--uncertain-0.2.2",
243+
"relationshipType": "DEPENDS_ON",
244+
"spdxElementId": "SPDXRef-Package-deep--causality-0.11.3"
245+
},
246+
{
247+
"relatedSpdxElement": "SPDXRef-Package-r-efi-5.3.0",
248+
"relationshipType": "DEPENDS_ON",
249+
"spdxElementId": "SPDXRef-Package-getrandom-0.3.3"
250+
},
251+
{
252+
"relatedSpdxElement": "SPDXRef-Package-wasip2-1.0.1-plus-wasi-0.2.4",
253+
"relationshipType": "DEPENDS_ON",
254+
"spdxElementId": "SPDXRef-Package-wasi-0.14.7-plus-wasi-0.2.4"
255+
},
256+
{
257+
"relatedSpdxElement": "SPDXRef-Package-wit-bindgen-0.46.0",
258+
"relationshipType": "DEPENDS_ON",
259+
"spdxElementId": "SPDXRef-Package-wasip2-1.0.1-plus-wasi-0.2.4"
260+
},
261+
{
262+
"relatedSpdxElement": "SPDXRef-Package-deep--causality-0.11.3",
263+
"relationshipType": "GENERATED_FROM",
264+
"spdxElementId": "SPDXRef-File-deep_causality"
265+
},
266+
{
267+
"relatedSpdxElement": "SPDXRef-Package-wasi-0.14.7-plus-wasi-0.2.4",
268+
"relationshipType": "DEPENDS_ON",
269+
"spdxElementId": "SPDXRef-Package-getrandom-0.3.3"
270+
}
271+
],
272+
"spdxVersion": "SPDX-2.3"
273+
}

deep_causality/sbom.spdx.json.sha

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
aef10ad6b9d9a7cc0ec366e7c9c5e89d02608b53e60c23651a33cf517639696a deep_causality/sbom.spdx.json

0 commit comments

Comments
 (0)