diff --git a/.github/actions/freyja-depgen/action.yml b/.github/actions/freyja-depgen/action.yml deleted file mode 100644 index 719bacec..00000000 --- a/.github/actions/freyja-depgen/action.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Freyja depgen -description: Generates a crate for Freyja dependencies -runs: - using: "composite" - steps: - - name: Copy environment config - run: | - mkdir -p ./.cargo/ - cp ./depgen/res/config.template.toml ./.cargo/config.toml - shell: bash - - name: Run depgen - uses: actions-rs/cargo@v1 - with: - command: run - args: --manifest-path depgen/Cargo.toml \ No newline at end of file diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 23b4ba8a..2d11804d 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -27,8 +27,6 @@ jobs: components: clippy rustfmt - name: Cache Dependencies uses: Swatinem/rust-cache@v2 - - name: Freyja depgen - uses: ./.github/actions/freyja-depgen - name: Cargo check workspace uses: actions-rs/cargo@v1 with: @@ -71,8 +69,6 @@ jobs: uses: ./.github/actions/install-rust-toolchain - name: Cache Dependencies uses: Swatinem/rust-cache@v2 - - name: Freyja depgen - uses: ./.github/actions/freyja-depgen - name: Build uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index a00f93a1..186d7927 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -21,8 +21,6 @@ jobs: submodules: recursive - name: Install Rust toolchain uses: ./.github/actions/install-rust-toolchain - - name: Freyja depgen - uses: ./.github/actions/freyja-depgen - name: Cargo audit uses: actions-rs/cargo@v1 with: diff --git a/docs/custom-adapters.md b/docs/custom-adapters.md index 3f6bdaa8..be416dcf 100644 --- a/docs/custom-adapters.md +++ b/docs/custom-adapters.md @@ -4,7 +4,7 @@ Freyja allows users to bring their own implementations of various traits which i ## How to Author a Custom Adapter -Freyja supports custom implementations of the `DigitalTwinAdapter`, `CloudAdapter`, and `MappingClient` interfaces. To refer to these traits in your implementation, you will need to take a dependency on the `freyja-contracts` crate. It's recommended to use git as the package source as follows: +Freyja supports custom implementations of the `DigitalTwinAdapter`, `CloudAdapter`, and `MappingClient` interfaces. To refer to these traits in your implementation, you will need to take a dependency on the `freyja-contracts` crate. The following `Cargo.toml` snippet shows how you can include this dependency: ```toml [dependencies] @@ -13,10 +13,16 @@ freyja-contracts = { git = "https://github.com/eclipse-ibeji/freyja", rev = " TokenStream { use_env::use_env(ts.into()).into() }