-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK: Only define global alloc in code output by entrypoint macro (#4733)
* Permit removal of the global alloc declaration in the SDK We shouldn't declare a global alloc in unit tests. (Ours is currently interopable with linux, which is why nothing breaks right now) * Revert "Permit removal of the global alloc declaration in the SDK" This reverts commit d4fdf80. * Move alloc and logger delcarations into entrypoint macro * make change non breaking * re-export the alloc struct from the sdk, so the entrypoint macro can use it * fix typo specifying dep * Add workspace wide setting to disable default features for oak_enclave_runtime_support, as otherwise it is ignored * Make oak_enclave_runtime_support/src/heap.rs clippy compliant since it's now public and parsed * Remove empty allocator init function
- Loading branch information
Showing
9 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ authors = ["Andri Saar <[email protected]>"] | |
edition = "2021" | ||
license = "Apache-2.0" | ||
|
||
[features] | ||
default = ["global_allocator"] | ||
global_allocator = [] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
libm = "*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters