StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" |
| 5 | cd "$repo_root" |
| 6 | |
| 7 | missing=0 |
| 8 | for required in "LICENSES/WARPUI-MIT.txt" "THIRD_PARTY_NOTICES.md"; do |
| 9 | if [[ ! -f "$required" ]]; then |
| 10 | echo "missing required attribution file: $required" >&2 |
| 11 | missing=1 |
| 12 | fi |
| 13 | done |
| 14 | |
| 15 | if [[ "$missing" -ne 0 ]]; then |
| 16 | exit 1 |
| 17 | fi |
| 18 | |
| 19 | forbidden_manifest_pattern='markdown_parser|sum_tree|warp_util|settings_value|command|asset_cache|virtual-fs|virtual_fs|ui_components|warpui_extras|string-offset' |
| 20 | forbidden_source_pattern='markdown_parser|sum_tree|warp_util|string_offset|warpdotdev/warp/app|LICENSE-AGPL' |
| 21 | |
| 22 | if grep -RInE "$forbidden_manifest_pattern" \ |
| 23 | crates/strato-ui-core/Cargo.toml \ |
| 24 | crates/strato-ui-renderer/Cargo.toml; then |
| 25 | echo "forbidden Warp/AGPL dependency reference found in Strato UI manifests" >&2 |
| 26 | exit 1 |
| 27 | fi |
| 28 | |
| 29 | if grep -RInE "$forbidden_source_pattern" \ |
| 30 | crates/strato-ui-core/src \ |
| 31 | crates/strato-ui-renderer/src \ |
| 32 | crates/strato-ui-renderer/examples; then |
| 33 | echo "forbidden Warp/AGPL code reference found in imported Strato UI source" >&2 |
| 34 | exit 1 |
| 35 | fi |
| 36 | |
| 37 | echo "Strato UI license boundary check passed" |
| 38 |