| # Copyright 2022 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| [package] |
| name = "cantrip-shell" |
| version = "0.1.0" |
| authors = ["Matt Harvey <mattharvey@google.com>"] |
| edition = "2021" |
| build = "build.rs" |
| |
| [build-dependencies] |
| sel4-config = { path = "../../cantrip-os-common/src/sel4-config" } |
| |
| [features] |
| default = [ |
| "TEST_GLOBAL_ALLOCATOR", |
| "TEST_MEMORY_MANAGER", |
| "TEST_PANIC", |
| "TEST_SECURITY_COORDINATOR", |
| ] |
| ml_support = ["cantrip-ml-interface"] |
| timer_support = [] |
| dynamic_load_support = ["zmodem"] |
| CONFIG_DEBUG_BUILD = [] |
| CONFIG_PRINTING = [] |
| CONFIG_KERNEL_MCS = [] |
| # Target platform support |
| CONFIG_PLAT_BCM2837 = [] |
| CONFIG_PLAT_SHODAN = [ |
| "ml_support", |
| "TEST_ML_COORDINATOR", |
| "timer_support", |
| "TEST_TIMER_SERVICE", |
| ] |
| CONFIG_PLAT_NEXUS = [ |
| "ml_support", |
| "TEST_ML_COORDINATOR", |
| "timer_support", |
| "TEST_TIMER_SERVICE", |
| ] |
| # Commands that are likely not useful |
| FRINGE_CMDS = ["zmodem"] |
| # Runtime tests for various services (please keep sorted) |
| TEST_GLOBAL_ALLOCATOR = [] |
| TEST_MEMORY_MANAGER = [] |
| TEST_ML_COORDINATOR = [] |
| TEST_PANIC = [] |
| TEST_SDK_RUNTIME = [] |
| TEST_SECURITY_COORDINATOR = [] |
| TEST_TIMER_SERVICE = [] |
| TEST_UART = [] |
| |
| [dependencies] |
| ahash = { version = "=0.8.6", default-features = false, features = ["compile-time-rng"] } |
| const-random = { version = "0.1.17" } |
| crc = { version = "1.4.0", default-features = false } |
| hashbrown = { version = "0.14.2" } |
| hex = { version = "0.4.3", default-features = false, features = ["alloc"] } |
| cantrip-io = { path = "../cantrip-io" } |
| cantrip-line-reader = { path = "../cantrip-line-reader" } |
| cantrip-memory-interface = { path = "../../MemoryManager/cantrip-memory-interface" } |
| cantrip-ml-interface = { path = "../../MlCoordinator/cantrip-ml-interface", optional = true } |
| cantrip-io-objdesc = { path = "../cantrip-io-objdesc" } |
| cantrip-proc-interface = { path = "../../ProcessManager/cantrip-proc-interface" } |
| cantrip-os-common = { path = "../../cantrip-os-common" } |
| cantrip-security-interface = { path = "../../SecurityCoordinator/cantrip-security-interface" } |
| cantrip-timer-interface = { path = "../../TimerService/cantrip-timer-interface" } |
| cantrip-sdk-manager = { path = "../../SDKRuntime/cantrip-sdk-manager" } |
| log = { version = "0.4", features = ["release_max_level_info"] } |
| zmodem = { path = "../zmodem", optional = true } |