| # 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-sdk-runtime" |
| version = "0.1.0" |
| edition = "2021" |
| build = "build.rs" |
| |
| [build-dependencies] |
| sel4-config = { path = "../../cantrip-os-common/src/sel4-config" } |
| |
| [features] |
| default = [] |
| timer_support = ["cantrip-timer-interface"] |
| ml_support = ["cantrip-ml-interface"] |
| audio_support = ["i2s-driver"] |
| # Target platform support |
| CONFIG_PLAT_SHODAN = ["timer_support", "ml_support", "audio_support"] |
| CONFIG_PLAT_NEXUS = ["timer_support", "ml_support", "audio_support"] |
| |
| |
| [dependencies] |
| ahash = { version = "=0.8.6", default-features = false, features = ["compile-time-rng"] } |
| bitvec = { version = "1.0", default-features = false } |
| cfg-if = "1.0" |
| const-random = { version = "0.1.17" } |
| cantrip-ml-interface = { path = "../../MlCoordinator/cantrip-ml-interface", optional = true } |
| cantrip-os-common = { path = "../../cantrip-os-common" } |
| cantrip-security-interface = { path = "../../SecurityCoordinator/cantrip-security-interface" } |
| cantrip-timer-interface = { path = "../../TimerService/cantrip-timer-interface", optional = true } |
| cantrip-sdk-manager = { path = "../cantrip-sdk-manager" } |
| hashbrown = { version = "0.14.2" } |
| i2s-driver = { path = "../i2s-driver", optional = true } |
| log = { version = "0.4", features = ["release_max_level_info"] } |
| sdk-interface = { path = "../sdk-interface" } |
| smallstr = "0.2" |
| smallvec = "1.10" |
| spin = "0.9" |