Skip to content

Commit 1a44573

Browse files
Merge branch 'main' into random-data-gen
2 parents 7ebba85 + 6190269 commit 1a44573

File tree

3 files changed

+471
-2
lines changed

3 files changed

+471
-2
lines changed

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ build: specs/index.html specs/faq.html
1111
cp -r $^ specs/diagrams ${RELEASE_DIR}/
1212
cp -r TR ${RELEASE_DIR}/
1313

14+
## and now build the rust docs...
15+
make gen/target/doc/ileap_extension/index.html
16+
cp -r gen/target/doc ${RELEASE_DIR}/rustdocs
17+
1418
specs/index.html: specs/index.bs ${DIAGRAMS}
1519
bikeshed spec $< $@
1620

@@ -29,6 +33,10 @@ clean:
2933
${MMDC}:
3034
npm install @mermaid-js/mermaid-cli
3135

36+
gen/target/doc/ileap_extension/index.html:
37+
cd gen && cargo doc --no-deps --document-private-items --all-features
38+
39+
.PHONY: gen/target/doc/ileap_extension/index.html
3240

3341
azure-upload-preview: build
3442
az storage blob upload-batch \

gen/src/lib.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! iLEAP Data Model Extension data model
22
use chrono::{DateTime, Utc};
3+
34
use pact_data_model::{
45
CarbonFootprint, CharacterizationFactors, CompanyIdSet, CrossSectoralStandard,
56
CrossSectoralStandardSet, DataModelExtension, DeclaredUnit, ExemptedEmissionsPercent,
@@ -8,9 +9,12 @@ use pact_data_model::{
89
};
910
use quickcheck::{Arbitrary, Gen};
1011
use rust_decimal::Decimal;
12+
1113
use schemars::JsonSchema;
1214
use serde::{Deserialize, Serialize};
13-
use uuid::Uuid;
15+
16+
mod pact_integration;
17+
pub use pact_integration::*;
1418

1519
mod arbitrary_impls;
1620

@@ -803,4 +807,4 @@ mod tests {
803807

804808
println!("{footprints:#?}");
805809
}
806-
}
810+
}

0 commit comments

Comments
 (0)