Skip to content

Commit

Permalink
Inline ufmt do_as_formatter.
Browse files Browse the repository at this point in the history
This modifies the ufmt package; upstream PR at
japaric/ufmt#59.

This significantly reduces the size of the uart ROM build.
  • Loading branch information
korran committed Jul 28, 2023
1 parent 0f70a3d commit f6619f7
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
9 changes: 3 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ members = [
"test-harness/types",
]

[workspace.dependencies]
ufmt = { git = "https://github.com/korran/ufmt.git", rev = "1d0743c1ffffc68bc05ca8eeb81c166192863f33", features = ["inline"] }

[profile.firmware]
inherits = "release"
panic = "abort"
Expand Down
2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ufmt = "0.2.0"
ufmt = { workspace = true }
zerocopy = "0.6.1"
caliptra-drivers = { path = "../drivers" }
caliptra-registers = { path = "../registers" }
Expand Down
2 changes: 1 addition & 1 deletion fmc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ caliptra-registers = { path = "../registers" }
caliptra-x509 = { version = "0.1.0", path = "../x509" , default-features = false }
caliptra_common = { path = "../common", default-features = false }
caliptra-image-types = { path = "../image/types", default-features = false }
ufmt = "0.2.0"
ufmt = { workspace = true }
zerocopy = "0.6.1"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion fmc/test-fw/test-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ caliptra-cpu = { version = "0.1.0", path = "../../../cpu" }
caliptra-drivers = { path = "../../../drivers" }
caliptra-registers = { version = "0.1.0", path = "../../../registers" }
caliptra_common = { path = "../../../common", default-features = false }
ufmt = "0.2.0"
ufmt = { workspace = true }
zerocopy = "0.6.1"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion rom/dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ caliptra-image-types = { path = "../../image/types", default-features = false }
caliptra-image-verify = { path = "../../image/verify", default-features = false }
caliptra_common = { path = "../../common", default-features = false }
caliptra-registers = { path = "../../registers" }
ufmt = "0.2.0"
ufmt = { workspace = true }
zerocopy = "0.6.1"
caliptra-error = { version = "0.1.0", path = "../../error", default_features = false }

Expand Down
2 changes: 1 addition & 1 deletion rom/dev/tools/test-fmc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
caliptra-drivers = { path = "../../../../drivers" }
caliptra_common = { path = "../../../../common", default-features = false }
ufmt = "0.2.0"
ufmt = { workspace = true }
ureg = { path = "../../../../ureg" }
zerocopy = "0.6.1"
caliptra-x509 = { version = "0.1.0", path = "../../../../x509" , default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion rom/dev/tools/test-rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
caliptra-drivers = { path = "../../../../drivers" }
ufmt = "0.2.0"
ufmt = { workspace = true }
caliptra-cpu = { version = "0.1.0", path = "../../../../cpu" }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ caliptra-drivers = { path = "../drivers" }
caliptra-registers = { path = "../registers" }
caliptra_common = { path = "../common", default-features = false }
caliptra-x509 = { path = "../x509", default-features = false }
ufmt = "0.2.0"
ufmt = { workspace = true }
zerocopy = "0.6.1"

[build-dependencies]
Expand Down

0 comments on commit f6619f7

Please sign in to comment.