Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove DTDL Parser #50

Merged
merged 28 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,17 @@ jobs:
submodules: recursive
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install nightly Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-08-11
default: true
override: true
components: clippy, rustfmt
- name: Install stable Rust toolchain
run: |
rustup show
rustup component add rustfmt clippy
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- run: cargo check --workspace
# Note: cargo check should use the --locked option
# Excluding it because of this known issue: https://github.com/mozilla/uniffi-rs/issues/1032
- run: cargo clippy --all-targets --all-features --workspace --no-deps -- -D warnings
- run: cargo fmt --all -- --check
- name: Run doctest only
# we run doctests here as cargo tarpaulin (our test runner)
# requires nightly toolchain to do so
# we run doctest here as cargo tarpaulin (our test runner)
uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -58,12 +52,8 @@ jobs:
submodules: recursive
- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install nightly Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-08-11
default: true
override: true
- name: Install stable Rust toolchain
run: rustup show
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ members = [
# extension
"core/module/managed_subscribe",

# DTDL tools
"dtdl-tools",

# digital twin model
"digital-twin-model",

# DTDL parser
"dtdl-parser",

# samples
"samples/common",
"samples/protobuf_data_access",
Expand All @@ -31,7 +31,7 @@ members = [
"samples/mixed",
"samples/property",
"samples/seat_massager",
"samples/streaming",
# "samples/streaming",
]

[workspace.dependencies]
Expand Down
6 changes: 3 additions & 3 deletions core/invehicle-digital-twin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Module references behind feature flags. Add any necessary module references here.
// Start: Module references.

// Add a new feature to all() so the use statement is active for the feature.
// ex. #[cfg(all(feature = "feature_1", feature = "feature_2"))]
#[cfg(all(feature = "managed_subscribe"))]
// Add a new feature to any() so the use statement is active for the feature.
// ex. #[cfg(any(feature = "feature_1", feature = "feature_2"))]
#[cfg(feature = "managed_subscribe")]
use common::grpc_interceptor::GrpcInterceptorLayer;

#[cfg(feature = "managed_subscribe")]
Expand Down
5 changes: 5 additions & 0 deletions devops/cg/license_url_to_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"https://raw.githubusercontent.com/moq/moq4/main/License.txt": "BSD 3-Clause",
"https://www.nuget.org/packages/NUnit/3.13.3/License": "MIT",
"https://www.nuget.org/packages/NUnit.Analyzers/3.3.0/License": "MIT"
}
12 changes: 0 additions & 12 deletions dtdl-parser/.accepted_words.txt

This file was deleted.

26 changes: 0 additions & 26 deletions dtdl-parser/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions dtdl-parser/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions dtdl-parser/dtdl/samples/building.json

This file was deleted.

42 changes: 0 additions & 42 deletions dtdl-parser/dtdl/samples/demo_resources.json

This file was deleted.

23 changes: 0 additions & 23 deletions dtdl-parser/dtdl/samples/phone.json

This file was deleted.

19 changes: 0 additions & 19 deletions dtdl-parser/dtdl/samples/thermostat.json

This file was deleted.

15 changes: 0 additions & 15 deletions dtdl-parser/src/command_info.rs

This file was deleted.

Loading