diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..e8d486ab --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "cargo" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5cd06c6..857d0bdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.58.1, stable, nightly] + rust: [1.60.0, stable, nightly] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master @@ -50,29 +50,3 @@ jobs: - run: cargo install --locked --version "~0.17" cargo-audit - run: cargo audit --ignore RUSTSEC-2020-0159 --ignore RUSTSEC-2020-0071 - license: - name: Check dependencies for licenses - runs-on: ubuntu-latest - outputs: - license_changed: ${{ steps.license_diff.outputs.license_changed }} - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - - run: cargo install --locked --version "~0.5" cargo-about - - run: cargo about generate --workspace --output-file "${{ runner.temp }}/licenses.html" about.hbs - - id: license_diff - run: | - if diff -q THIRD_PARTY_LICENSES_RUST_CRATES.html ${{ runner.temp }}/licenses.html ; then - echo "license_changed=NO" >> $GITHUB_OUTPUT - else - echo "license_changed=YES" >> $GITHUB_OUTPUT - fi - - license_update: - name: Check if rust crates license files needs updates - runs-on: ubuntu-latest - needs: license - continue-on-error: true - steps: - - run: test "${{ needs.license.outputs.license_changed }}" == "NO" diff --git a/.github/workflows/event.yml b/.github/workflows/event.yml index 22febf5b..4c0f4c6f 100644 --- a/.github/workflows/event.yml +++ b/.github/workflows/event.yml @@ -9,6 +9,7 @@ on: jobs: build: + if: ${{ github.repository == "aws/aws-nitro-enclaves-cli" }} runs-on: ubuntu-latest steps: - name: if_pr @@ -23,4 +24,4 @@ jobs: echo "EVENT_URL=${{ github.event.issue.html_url }}" >> $GITHUB_ENV - name: notify run: | - curl -d '{ "type": "${{ env.EVENT_TYPE }}", "url": "${{ env.EVENT_URL }}" }' ${{ secrets.EVENT_WEBHOOK_URL }} \ No newline at end of file + curl -d '{ "type": "${{ env.EVENT_TYPE }}", "url": "${{ env.EVENT_URL }}" }' ${{ secrets.EVENT_WEBHOOK_URL }} diff --git a/.github/workflows/license_update.yml b/.github/workflows/license_update.yml new file mode 100644 index 00000000..fb201d50 --- /dev/null +++ b/.github/workflows/license_update.yml @@ -0,0 +1,54 @@ +name: Update THIRD_PARTY_LICENSES_RUST_CRATES.html +on: + schedule: + # Run the job every midnight. + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + contents: read + +jobs: + update_license: + name: Update THIRD_PARTY_LICENSES_RUST_CRATES.html + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + # Clone the repository and check if THIRD_PARTY_LICENSES_RUST_CRATES.html + # is up-to-date. + - uses: actions/checkout@v3.5.0 + with: + persist-credentials: false + - run: cargo install --locked --version "~0.5" cargo-about + - run: cargo about generate --workspace --output-file THIRD_PARTY_LICENSES_RUST_CRATES.html about.hbs + - id: checkgitdiff # Early exit if there is no diff. + run: | + git diff --exit-code --quiet + [ $? -eq 0 ] && { + echo "THIRD_PARTY_LICENSES_RUST_CRATES.html is up-to-date." + gh run cancel ${{ github.run_id }} + gh run watch ${{ github.run_id }} + } + continue-on-error: true + # Delete existing rust-crates-license-update branch. + - uses: dawidd6/action-delete-branch@v3 + with: + github_token: ${{github.token}} + branches: rust-crates-license-update + # Create a new PR. + - uses: gr2m/create-or-update-pull-request-action@v1.x + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # https://github.com/actions/checkout/pull/1184 + author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: rust-crates-license-update + title: 'doc: update THIRD_PARTY_LICENSES_RUST_CRATES.html' + body: > + THIRD_PARTY_LICENSES_RUST_CRATES.html needs an update. This is an automatically generated PR by + a GitHub Action. + commit-message: 'doc: update THIRD_PARTY_LICENSES_RUST_CRATES.html' + + diff --git a/.github/workflows/summary.yml b/.github/workflows/summary.yml index 124660e8..63b932ce 100644 --- a/.github/workflows/summary.yml +++ b/.github/workflows/summary.yml @@ -6,6 +6,7 @@ on: jobs: build: + if: ${{ github.repository == "aws/aws-nitro-enclaves-cli" }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -33,4 +34,4 @@ jobs: - name: notify run: | # Send open PRs and issues lists from corresponding environment variables to a dedicated webhook URL - curl -d '{ "repo": "${{ env.REPOSITORY_NAME }}", "prs": "${{ env.PRS_CONTENT }}", "issues": "${{ env.ISSUES_CONTENT }}" }' ${{ secrets.SUMMARY_WEBHOOK_URL }} \ No newline at end of file + curl -d '{ "repo": "${{ env.REPOSITORY_NAME }}", "prs": "${{ env.PRS_CONTENT }}", "issues": "${{ env.ISSUES_CONTENT }}" }' ${{ secrets.SUMMARY_WEBHOOK_URL }} diff --git a/Cargo.lock b/Cargo.lock index 4f50ecd3..4cb7c6f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,12 +18,18 @@ dependencies = [ ] [[package]] -name = "ansi_term" -version = "0.12.1" +name = "android-tzdata" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ - "winapi", + "libc", ] [[package]] @@ -32,7 +38,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -45,9 +51,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "aws-nitro-enclaves-cose" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0705f682b7df79a5841e815364181f35efe0ef953a1363cf8e773d5bd23846a5" +checksum = "5ce1d9954a5cb2841ad8ab206a050cd07ed34200ea6aafb7fa73a33771aaf48c" dependencies = [ "openssl", "serde", @@ -66,7 +72,7 @@ dependencies = [ "aws-nitro-enclaves-cose", "byteorder", "chrono", - "clap 3.2.22", + "clap", "crc", "hex", "num-derive", @@ -80,30 +86,36 @@ dependencies = [ [[package]] name = "base64" -version = "0.13.0" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" [[package]] name = "bindgen" -version = "0.59.2" +version = "0.68.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8" +checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078" dependencies = [ - "bitflags", + "bitflags 2.4.0", "cexpr", "clang-sys", - "clap 2.34.0", - "env_logger 0.9.0", "lazy_static", "lazycell", "log", "peeking_take_while", + "prettyplease", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", + "syn 2.0.37", "which", ] @@ -113,6 +125,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" + [[package]] name = "block-buffer" version = "0.9.0" @@ -128,6 +146,12 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4ae4235e6dac0694637c763029ecea1a2ec9e4e06ec2729bd21ba4d9c863eb7" +[[package]] +name = "bumpalo" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" + [[package]] name = "byteorder" version = "1.4.3" @@ -169,16 +193,17 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.19" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" +checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" dependencies = [ - "libc", - "num-integer", + "android-tzdata", + "iana-time-zone", + "js-sys", "num-traits", "serde", - "time", - "winapi", + "wasm-bindgen", + "windows-targets 0.48.5", ] [[package]] @@ -194,32 +219,17 @@ dependencies = [ [[package]] name = "clap" -version = "2.34.0" +version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ - "ansi_term", "atty", - "bitflags", - "strsim 0.8.0", - "textwrap 0.11.0", - "unicode-width", - "vec_map", -] - -[[package]] -name = "clap" -version = "3.2.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" -dependencies = [ - "atty", - "bitflags", + "bitflags 1.3.2", "clap_lex", "indexmap", - "strsim 0.10.0", + "strsim", "termcolor", - "textwrap 0.15.1", + "textwrap", ] [[package]] @@ -231,11 +241,27 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "codespan-reporting" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +dependencies = [ + "termcolor", + "unicode-width", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" + [[package]] name = "cpufeatures" -version = "0.2.1" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" dependencies = [ "libc", ] @@ -258,6 +284,50 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "cxx" +version = "1.0.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e599641dff337570f6aa9c304ecca92341d30bf72e1c50287869ed6a36615a6" +dependencies = [ + "cc", + "cxxbridge-flags", + "cxxbridge-macro", + "link-cplusplus", +] + +[[package]] +name = "cxx-build" +version = "1.0.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60e2434bc22249c056e12d2e87db46380730da0f2648471edea3e8e11834a892" +dependencies = [ + "cc", + "codespan-reporting", + "once_cell", + "proc-macro2", + "quote", + "scratch", + "syn 1.0.109", +] + +[[package]] +name = "cxxbridge-flags" +version = "1.0.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3894ad0c6d517cb5a4ce8ec20b37cd0ea31b480fe582a104c5db67ae21270853" + +[[package]] +name = "cxxbridge-macro" +version = "1.0.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34fa7e395dc1c001083c7eed28c8f0f0b5a225610f3b6284675f444af6fab86b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "digest" version = "0.9.0" @@ -289,7 +359,7 @@ version = "0.1.0" dependencies = [ "aws-nitro-enclaves-image-format", "libc", - "nix", + "nix 0.26.2", "sha2", "tempfile", "vsock", @@ -306,8 +376,8 @@ name = "enclave_build" version = "0.2.0" dependencies = [ "aws-nitro-enclaves-image-format", - "base64", - "clap 3.2.22", + "base64 0.21.4", + "clap", "futures", "log", "serde", @@ -322,28 +392,47 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.7.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" +checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" dependencies = [ - "atty", - "humantime 1.3.0", + "humantime", + "is-terminal", "log", "regex", "termcolor", ] [[package]] -name = "env_logger" -version = "0.9.0" +name = "errno" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" +checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" dependencies = [ - "atty", - "humantime 2.1.0", - "log", - "regex", - "termcolor", + "errno-dragonfly", + "libc", + "winapi", +] + +[[package]] +name = "errno" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0" +dependencies = [ + "errno-dragonfly", + "libc", + "windows-sys 0.45.0", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", ] [[package]] @@ -363,7 +452,7 @@ checksum = "975ccf83d8d9d0d84682850a38c8169027be83368805971cc4f238c2b245bc98" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.2.11", "winapi", ] @@ -381,18 +470,18 @@ dependencies = [ [[package]] name = "flexi_logger" -version = "0.15.12" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaab3caedb4149800f91e8e4899f29cd9ddf3b569b04c365ca9334f92f7542bf" +checksum = "6eae57842a8221ef13f1f207632d786a175dd13bd8fbdc8be9d852f7c9cf1046" dependencies = [ - "atty", "chrono", "glob", + "is-terminal", "lazy_static", "log", + "nu-ansi-term", "regex", "thiserror", - "yansi", ] [[package]] @@ -418,19 +507,18 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" dependencies = [ - "matches", "percent-encoding", ] [[package]] name = "futures" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e" +checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" dependencies = [ "futures-channel", "futures-core", @@ -443,9 +531,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ "futures-core", "futures-sink", @@ -453,15 +541,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6" +checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" dependencies = [ "futures-core", "futures-task", @@ -470,38 +558,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-macro" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.37", ] [[package]] name = "futures-sink" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-util" -version = "0.3.21" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ "futures-channel", "futures-core", @@ -539,13 +627,13 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.1.16" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -575,6 +663,12 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" + [[package]] name = "hex" version = "0.4.3" @@ -605,9 +699,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" @@ -615,15 +709,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" -[[package]] -name = "humantime" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -dependencies = [ - "quick-error", -] - [[package]] name = "humantime" version = "2.1.0" @@ -632,9 +717,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.17" +version = "0.14.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd" +checksum = "abfba89e19b959ca163c7752ba59d737c1ceea53a5d31a149c805446fc958064" dependencies = [ "bytes 1.1.0", "futures-channel", @@ -684,13 +769,36 @@ dependencies = [ "tokio", ] +[[package]] +name = "iana-time-zone" +version = "0.1.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "winapi", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +dependencies = [ + "cxx", + "cxx-build", +] + [[package]] name = "idna" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" dependencies = [ - "matches", "unicode-bidi", "unicode-normalization", ] @@ -707,11 +815,11 @@ dependencies = [ [[package]] name = "inotify" -version = "0.9.6" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" +checksum = "abf888f9575c290197b2c948dc9e9ff10bd1a39ad1ea8585f734585fa6b9d3f9" dependencies = [ - "bitflags", + "bitflags 1.3.2", "futures-core", "inotify-sys", "libc", @@ -736,12 +844,43 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "io-lifetimes" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfa919a82ea574332e2de6e74b4c36e74d41982b335080fa59d4ef31be20fdf3" +dependencies = [ + "libc", + "windows-sys 0.45.0", +] + +[[package]] +name = "is-terminal" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8687c819457e979cc940d09cb16e42a1bf70aa6b60a549de6d3a62a0ee90c69e" +dependencies = [ + "hermit-abi 0.3.1", + "io-lifetimes", + "rustix 0.36.9", + "windows-sys 0.45.0", +] + [[package]] name = "itoa" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" +[[package]] +name = "js-sys" +version = "0.3.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27" +dependencies = [ + "wasm-bindgen", +] + [[package]] name = "lazy_static" version = "1.4.0" @@ -756,9 +895,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.120" +version = "0.2.142" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09" +checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317" [[package]] name = "libloading" @@ -770,6 +909,15 @@ dependencies = [ "winapi", ] +[[package]] +name = "link-cplusplus" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" +dependencies = [ + "cc", +] + [[package]] name = "linked-hash-map" version = "0.5.4" @@ -785,6 +933,18 @@ dependencies = [ "linked-hash-map", ] +[[package]] +name = "linux-raw-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" + +[[package]] +name = "linux-raw-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f" + [[package]] name = "lock_api" version = "0.4.6" @@ -796,19 +956,13 @@ dependencies = [ [[package]] name = "log" -version = "0.4.14" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "memchr" version = "2.4.1" @@ -824,6 +978,15 @@ dependencies = [ "autocfg", ] +[[package]] +name = "memoffset" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +dependencies = [ + "autocfg", +] + [[package]] name = "mime" version = "0.3.16" @@ -848,35 +1011,24 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.2" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52da4364ffb0e4fe33a9841a98a3f3014fb964045ce4f7a45a398243c8d6b0c9" +checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" dependencies = [ "libc", "log", - "miow", - "ntapi", - "wasi 0.11.0+wasi-snapshot-preview1", - "winapi", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi", + "wasi", + "windows-sys 0.45.0", ] [[package]] name = "nitro-cli" -version = "1.2.1" +version = "1.2.2" dependencies = [ "aws-nitro-enclaves-image-format", "bindgen", "chrono", - "clap 3.2.22", + "clap", "driver-bindings", "eif_loader", "enclave_build", @@ -886,7 +1038,7 @@ dependencies = [ "lazy_static", "libc", "log", - "nix", + "nix 0.26.2", "num-derive", "num-traits", "openssl", @@ -903,15 +1055,28 @@ dependencies = [ [[package]] name = "nix" -version = "0.23.1" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6" +checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ - "bitflags", - "cc", + "bitflags 1.3.2", "cfg-if", "libc", - "memoffset", + "memoffset 0.6.5", +] + +[[package]] +name = "nix" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", + "memoffset 0.7.1", + "pin-utils", + "static_assertions", ] [[package]] @@ -925,11 +1090,12 @@ dependencies = [ ] [[package]] -name = "ntapi" -version = "0.3.7" +name = "nu-ansi-term" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ + "overload", "winapi", ] @@ -941,24 +1107,14 @@ checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" dependencies = [ "proc-macro2", "quote", - "syn", -] - -[[package]] -name = "num-integer" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" -dependencies = [ - "autocfg", - "num-traits", + "syn 1.0.109", ] [[package]] name = "num-traits" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", ] @@ -969,7 +1125,7 @@ version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", ] @@ -987,25 +1143,36 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl" -version = "0.10.38" +version = "0.10.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95" +checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c" dependencies = [ - "bitflags", + "bitflags 2.4.0", "cfg-if", "foreign-types", "libc", "once_cell", + "openssl-macros", "openssl-sys", ] +[[package]] +name = "openssl-macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "openssl-sys" -version = "0.9.72" +version = "0.9.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb" +checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" dependencies = [ - "autocfg", "cc", "libc", "pkg-config", @@ -1018,11 +1185,17 @@ version = "6.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" + [[package]] name = "page_size" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebde548fbbf1ea81a99b128872779c437752fb99f217c45245e1a61dcd9edcd" +checksum = "1b7663cbd190cfd818d08efa8497f6cd383076688c49a391ef7c0d03cd12b561" dependencies = [ "libc", "winapi", @@ -1046,9 +1219,9 @@ checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.2.11", "smallvec", - "windows-sys", + "windows-sys 0.32.0", ] [[package]] @@ -1059,9 +1232,9 @@ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "percent-encoding" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pin-project" @@ -1089,7 +1262,7 @@ checksum = "044964427019eed9d49d9d5bbce6047ef18f37100ea400912a9fa4a3523ab12a" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -1100,7 +1273,7 @@ checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -1128,47 +1301,49 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] -name = "proc-macro2" -version = "1.0.36" +name = "prettyplease" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d" dependencies = [ - "unicode-xid", + "proc-macro2", + "syn 2.0.37", ] [[package]] -name = "quick-error" -version = "1.2.3" +name = "proc-macro2" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" +checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" +dependencies = [ + "unicode-ident", +] [[package]] name = "quote" -version = "1.0.16" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4af2ec4714533fcdf07e886f17025ace8b997b9ce51204ee69b6da831c3da57" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] [[package]] name = "rand" -version = "0.7.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ - "getrandom", "libc", "rand_chacha", "rand_core", - "rand_hc", ] [[package]] name = "rand_chacha" -version = "0.2.2" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", @@ -1176,29 +1351,29 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.5.1" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] [[package]] -name = "rand_hc" -version = "0.2.0" +name = "redox_syscall" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c" dependencies = [ - "rand_core", + "bitflags 1.3.2", ] [[package]] name = "redox_syscall" -version = "0.2.11" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c" +checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -1219,19 +1394,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "rustc-hash" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustix" +version = "0.36.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd5c6ff11fecd55b40746d1995a02f2eb375bf8c00d192d521ee09f42bef37bc" dependencies = [ - "winapi", + "bitflags 1.3.2", + "errno 0.2.8", + "io-lifetimes", + "libc", + "linux-raw-sys 0.1.4", + "windows-sys 0.45.0", ] [[package]] -name = "rustc-hash" -version = "1.1.0" +name = "rustix" +version = "0.37.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "d097081ed288dfe45699b72f5b5d648e5f15d64d900c7080273baa20c16a6849" +dependencies = [ + "bitflags 1.3.2", + "errno 0.3.0", + "io-lifetimes", + "libc", + "linux-raw-sys 0.3.1", + "windows-sys 0.45.0", +] [[package]] name = "rustversion" @@ -1251,11 +1445,17 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "scratch" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1" + [[package]] name = "serde" -version = "1.0.136" +version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" +checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" dependencies = [ "serde_derive", ] @@ -1281,20 +1481,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.136" +version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" +checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.37", ] [[package]] name = "serde_json" -version = "1.0.79" +version = "1.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" +checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" dependencies = [ "itoa", "ryu", @@ -1309,7 +1509,7 @@ checksum = "98d0516900518c29efa217c298fa1f4e6c6ffc85ae29fd7f4ee48f176e1a9ed5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -1324,9 +1524,9 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.8.23" +version = "0.8.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a521f2940385c165a24ee286aa8599633d162077a54bdcae2a6fd5a7bfa7a0" +checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" dependencies = [ "indexmap", "ryu", @@ -1353,7 +1553,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e468265908f45299c26571dad9a2e5cb3656eceb51cd58f1441cf61aa71aad6" dependencies = [ - "base64", + "base64 0.13.1", "byteorder", "bytes 1.1.0", "chrono", @@ -1382,9 +1582,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "signal-hook" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "647c97df271007dcea485bb74ffdb57f2e683f1306c854f468a0c244badabf2d" +checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" dependencies = [ "libc", "signal-hook-registry", @@ -1413,19 +1613,19 @@ checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" [[package]] name = "socket2" -version = "0.4.4" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", ] [[package]] -name = "strsim" -version = "0.8.0" +name = "static_assertions" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "strsim" @@ -1435,13 +1635,24 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "syn" -version = "1.0.89" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] @@ -1457,16 +1668,15 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.3.0" +version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" dependencies = [ "cfg-if", "fastrand", - "libc", - "redox_syscall", - "remove_dir_all", - "winapi", + "redox_syscall 0.3.5", + "rustix 0.37.6", + "windows-sys 0.45.0", ] [[package]] @@ -1480,18 +1690,9 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.11.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - -[[package]] -name = "textwrap" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" +checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" @@ -1510,7 +1711,7 @@ checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -1522,17 +1723,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "time" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - [[package]] name = "tinyvec" version = "1.5.1" @@ -1550,16 +1740,17 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.18.5" +version = "1.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e050c618355082ae5a89ec63bbf897225d5ffe84c7c4e036874e4d185a5044e" +checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" dependencies = [ + "autocfg", "libc", "mio", "num_cpus", "pin-project-lite", "socket2", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -1624,6 +1815,12 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f" +[[package]] +name = "unicode-ident" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" + [[package]] name = "unicode-normalization" version = "0.1.19" @@ -1639,21 +1836,14 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - [[package]] name = "url" -version = "2.2.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" dependencies = [ "form_urlencoded", "idna", - "matches", "percent-encoding", ] @@ -1663,12 +1853,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - [[package]] name = "version_check" version = "0.9.4" @@ -1677,34 +1861,34 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "vmm-sys-util" -version = "0.8.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cf11afbc4ebc0d5c7a7748a77d19e2042677fc15faa2f4ccccb27c18a60605" +checksum = "dd64fe09d8e880e600c324e7d664760a17f56e9672b7495a86381b49e4f72f46" dependencies = [ - "bitflags", + "bitflags 1.3.2", "libc", ] [[package]] name = "vsock" -version = "0.2.6" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e32675ee2b3ce5df274c0ab52d19b28789632406277ca26bffee79a8e27dc133" +checksum = "4c8e1df0bf1e1b28095c24564d1b90acae64ca69b097ed73896e342fa6649c57" dependencies = [ "libc", - "nix", + "nix 0.24.3", ] [[package]] name = "vsock-proxy" version = "0.1.0" dependencies = [ - "clap 3.2.22", + "clap", "dns-lookup", - "env_logger 0.7.1", + "env_logger", "idna", "log", - "nix", + "nix 0.26.2", "rand", "tempfile", "threadpool", @@ -1724,21 +1908,63 @@ dependencies = [ [[package]] name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" +name = "wasm-bindgen" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" +checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" +dependencies = [ + "cfg-if", + "wasm-bindgen-macro", +] [[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +name = "wasm-bindgen-backend" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" +dependencies = [ + "bumpalo", + "lazy_static", + "log", + "proc-macro2", + "quote", + "syn 1.0.109", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" [[package]] name = "which" @@ -1788,43 +2014,175 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6" dependencies = [ - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_msvc", + "windows_aarch64_msvc 0.32.0", + "windows_i686_gnu 0.32.0", + "windows_i686_msvc 0.32.0", + "windows_x86_64_gnu 0.32.0", + "windows_x86_64_msvc 0.32.0", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.1", ] +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm 0.42.1", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm 0.42.1", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + [[package]] name = "windows_aarch64_msvc" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5" +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + [[package]] name = "windows_i686_gnu" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615" +[[package]] +name = "windows_i686_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + [[package]] name = "windows_i686_msvc" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172" +[[package]] +name = "windows_i686_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + [[package]] name = "windows_x86_64_gnu" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc" +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + [[package]] name = "windows_x86_64_msvc" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316" +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + [[package]] name = "xattr" version = "0.2.2" @@ -1842,9 +2200,3 @@ checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" dependencies = [ "linked-hash-map", ] - -[[package]] -name = "yansi" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc79f4a1e39857fc00c3f662cbf2651c771f00e9c15fe2abc341806bd46bd71" diff --git a/Cargo.toml b/Cargo.toml index 7bed0d2d..66988c11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,22 +1,22 @@ [package] name = "nitro-cli" -version = "1.2.1" +version = "1.2.2" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" license = "Apache-2.0" -rust-version = "1.58" +rust-version = "1.60" [dependencies] serde = { version = ">=1.0", features = ["derive"] } chrono = "0.4" clap = "3.2" -inotify = "0.9" +inotify = "0.10" serde_json = "1.0" -nix = "0.23" +nix = "0.26" log = "0.4" libc = { version = ">=0.2.69" } -flexi_logger = "0.15" -page_size = "0.4" +flexi_logger = "0.25" +page_size = "0.5" signal-hook = "0.3" serde_cbor = "0.11" driver-bindings = { path = "./driver-bindings" } @@ -24,8 +24,8 @@ aws-nitro-enclaves-image-format = "0.2" eif_loader = { path = "./eif_loader" } enclave_build = { path = "./enclave_build" } openssl = "0.10" -vsock = "0.2" -vmm-sys-util = "0.8.0" +vsock = "0.3" +vmm-sys-util = "0.11.1" sha2 = "0.9.5" hex = "0.4" @@ -38,7 +38,7 @@ bindgen = { version=">=0.54" } log = "0.4" num-derive = "0.3" num-traits = "0.2" -tempfile = "3.1" +tempfile = "3.5" [workspace] members = [".", "driver-bindings", "eif_loader", "enclave_build", "vsock_proxy"] diff --git a/README.md b/README.md index 9623122a..ced005fb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![msrv] -[msrv]: https://img.shields.io/badge/MSRV-1.58.1-blue +[msrv]: https://img.shields.io/badge/MSRV-1.60.0-blue ## Nitro Enclaves Command Line Interface (Nitro CLI) diff --git a/SPECS/aws-nitro-enclaves-cli.spec b/SPECS/aws-nitro-enclaves-cli.spec index 0fe278b6..32edfb8a 100644 --- a/SPECS/aws-nitro-enclaves-cli.spec +++ b/SPECS/aws-nitro-enclaves-cli.spec @@ -17,7 +17,7 @@ Summary: AWS Nitro Enclaves tools for managing enclaves Name: aws-nitro-enclaves-cli -Version: 1.2.1 +Version: 1.2.2 Release: 0%{?dist} License: Apache 2.0 @@ -28,8 +28,8 @@ Source0: aws-nitro-enclaves-cli.tar.gz Source1: nitro-cli-dependencies.tar.gz BuildRequires: openssl-devel -BuildRequires: rust >= 1.58 -BuildRequires: cargo >= 1.58 +BuildRequires: rust >= 1.60 +BuildRequires: cargo >= 1.60 BuildRequires: make BuildRequires: llvm BuildRequires: clang @@ -192,6 +192,37 @@ fi %{ne_include_dir}/* %changelog +* Tue Mar 07 2023 Petre Eftime - 1.2.2-0 +- update third party crates license file +- update clap +- update bindgen +- update cpufeatures +- update chrono +- update tempfile +- update hyper +- Fix fmt issues +- Fix clippy issues after tokio update. +- build(deps): bump tokio from 1.18.4 to 1.18.5 +- ci: reserve 2 cpus, not specific cpus +- ci: mark logs as plaintext +- CI: prevent tests from getting stuck +- CI: use get-login-password instead of get-login +- build(deps): bump tokio from 1.17.0 to 1.18.4 +- clippy: fix minor issue +- cli/enclave_proc: handle EINTR for epoll_wait() +- use ubuntu from the public ECR gallery +- Update THIRD_PARTY_LICENSES_RUST_CRATES.html +- nitro-enclaves-allocator: Set local language to English +- do not re-run Actions checks during tests +- add license checks +- add audit step +- ci: add workflows build, clippy and format workflows +- fix clippy::explicit_auto_deref +- fix clippy::partialeq_to_none +- regenerate driver-bindings with Default +- enclave_build: Fix clippy warning (clippy::needless_borrow) +- vsock-proxy: Add "ap-southeast-3" endpoints to config + * Tue Oct 25 2022 Andra Paraschiv - 1.2.1-0 - Fix nitro-cli debug mode, when using attach_console and debug_mode options. - Refactor Dockerfiles for faster builds and remove duplication. diff --git a/THIRD_PARTY_LICENSES_RUST_CRATES.html b/THIRD_PARTY_LICENSES_RUST_CRATES.html index 639bb345..dd081df2 100644 --- a/THIRD_PARTY_LICENSES_RUST_CRATES.html +++ b/THIRD_PARTY_LICENSES_RUST_CRATES.html @@ -44,8 +44,8 @@

Third Party Licenses

Overview of licenses:

@@ -639,7 +639,7 @@

Used by:

Apache License 2.0

Used by:

                                  Apache License
@@ -1049,7 +1049,7 @@ 

Used by:

Apache License 2.0

Used by:

                                 Apache License
                            Version 2.0, January 2004
@@ -1898,7 +1896,7 @@ 

Used by:

Apache License 2.0

Used by:

                              Apache License
                         Version 2.0, January 2004
@@ -3135,7 +3133,7 @@ 

Used by:

Apache License 2.0

Used by:

                              Apache License
                         Version 2.0, January 2004
@@ -3325,13 +3323,13 @@ 

Used by:

same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2019 The CryptoCorrosion Contributors +Copyright 2020 Andrew Straw 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 - http://www.apache.org/licenses/LICENSE-2.0 + http://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, @@ -3560,7 +3558,6 @@

Used by:

  • cexpr 0.6.0
  • cfg-if 1.0.0
  • either 1.6.1
  • -
  • env_logger 0.7.1
  • env_logger 0.9.0
  • fastrand 1.7.0
  • filetime 0.2.15
  • @@ -3569,13 +3566,15 @@

    Used by:

  • form_urlencoded 1.0.1
  • glob 0.3.0
  • hashbrown 0.11.2
  • -
  • httparse 1.6.0
  • +
  • httparse 1.8.0
  • hyper-openssl 0.9.2
  • idna 0.2.3
  • indexmap 1.8.0
  • +
  • io-lifetimes 1.0.6
  • itoa 1.0.1
  • lazy_static 1.4.0
  • lazycell 1.3.0
  • +
  • linux-raw-sys 0.1.4
  • lock_api 0.4.6
  • mime 0.3.16
  • num-derive 0.3.3
  • @@ -3593,6 +3592,7 @@

    Used by:

  • regex 1.5.5
  • regex-syntax 0.6.25
  • rustc-hash 1.1.0
  • +
  • rustix 0.36.9
  • rustversion 1.0.6
  • scopeguard 1.1.0
  • serde 1.0.136
  • @@ -3609,14 +3609,12 @@

    Used by:

  • socket2 0.4.4
  • syn 1.0.89
  • tar 0.4.38
  • -
  • tempfile 3.3.0
  • +
  • tempfile 3.4.0
  • thiserror 1.0.30
  • thiserror-impl 1.0.30
  • -
  • threadpool 1.8.1
  • time 0.1.44
  • unicode-bidi 0.3.7
  • unicode-normalization 0.1.19
  • -
  • unicode-width 0.1.9
  • unicode-xid 0.2.2
  • url 2.2.2
  • version_check 0.9.4
  • @@ -3833,7 +3831,6 @@

    Used by:

                                  Apache License
                             Version 2.0, January 2004
    @@ -4043,7 +4040,7 @@ 

    Apache License 2.0

    Used by:

    • block-buffer 0.9.0
    • -
    • cpufeatures 0.2.1
    • +
    • cpufeatures 0.2.5
    • digest 0.9.0
    • opaque-debug 0.3.0
    • sha2 0.9.9
    • @@ -4255,11 +4252,11 @@

      Used by:

      Apache License 2.0

      Used by:

                                    Apache License
                               Version 2.0, January 2004
      -                     http://www.apache.org/licenses/
      +                     https://www.apache.org/licenses/LICENSE-2.0
       
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
       
      @@ -4431,6 +4428,7 @@ 

      Used by:

      defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. @@ -4450,7 +4448,7 @@

      Used by:

      you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + 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, @@ -4463,865 +4461,245 @@

      Used by:

      Apache License 2.0

      Used by:

      -
                                    Apache License
      -                        Version 2.0, January 2004
      -                     https://www.apache.org/licenses/
      +                
                                    Apache License
      +                        Version 2.0, January 2004
      +                     http://www.apache.org/licenses/
      +
      +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      +
      +1. Definitions.
      +
      +   "License" shall mean the terms and conditions for use, reproduction,
      +   and distribution as defined by Sections 1 through 9 of this document.
      +
      +   "Licensor" shall mean the copyright owner or entity authorized by
      +   the copyright owner that is granting the License.
      +
      +   "Legal Entity" shall mean the union of the acting entity and all
      +   other entities that control, are controlled by, or are under common
      +   control with that entity. For the purposes of this definition,
      +   "control" means (i) the power, direct or indirect, to cause the
      +   direction or management of such entity, whether by contract or
      +   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      +   outstanding shares, or (iii) beneficial ownership of such entity.
      +
      +   "You" (or "Your") shall mean an individual or Legal Entity
      +   exercising permissions granted by this License.
      +
      +   "Source" form shall mean the preferred form for making modifications,
      +   including but not limited to software source code, documentation
      +   source, and configuration files.
      +
      +   "Object" form shall mean any form resulting from mechanical
      +   transformation or translation of a Source form, including but
      +   not limited to compiled object code, generated documentation,
      +   and conversions to other media types.
      +
      +   "Work" shall mean the work of authorship, whether in Source or
      +   Object form, made available under the License, as indicated by a
      +   copyright notice that is included in or attached to the work
      +   (an example is provided in the Appendix below).
      +
      +   "Derivative Works" shall mean any work, whether in Source or Object
      +   form, that is based on (or derived from) the Work and for which the
      +   editorial revisions, annotations, elaborations, or other modifications
      +   represent, as a whole, an original work of authorship. For the purposes
      +   of this License, Derivative Works shall not include works that remain
      +   separable from, or merely link (or bind by name) to the interfaces of,
      +   the Work and Derivative Works thereof.
      +
      +   "Contribution" shall mean any work of authorship, including
      +   the original version of the Work and any modifications or additions
      +   to that Work or Derivative Works thereof, that is intentionally
      +   submitted to Licensor for inclusion in the Work by the copyright owner
      +   or by an individual or Legal Entity authorized to submit on behalf of
      +   the copyright owner. For the purposes of this definition, "submitted"
      +   means any form of electronic, verbal, or written communication sent
      +   to the Licensor or its representatives, including but not limited to
      +   communication on electronic mailing lists, source code control systems,
      +   and issue tracking systems that are managed by, or on behalf of, the
      +   Licensor for the purpose of discussing and improving the Work, but
      +   excluding communication that is conspicuously marked or otherwise
      +   designated in writing by the copyright owner as "Not a Contribution."
      +
      +   "Contributor" shall mean Licensor and any individual or Legal Entity
      +   on behalf of whom a Contribution has been received by Licensor and
      +   subsequently incorporated within the Work.
      +
      +2. Grant of Copyright License. Subject to the terms and conditions of
      +   this License, each Contributor hereby grants to You a perpetual,
      +   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      +   copyright license to reproduce, prepare Derivative Works of,
      +   publicly display, publicly perform, sublicense, and distribute the
      +   Work and such Derivative Works in Source or Object form.
      +
      +3. Grant of Patent License. Subject to the terms and conditions of
      +   this License, each Contributor hereby grants to You a perpetual,
      +   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      +   (except as stated in this section) patent license to make, have made,
      +   use, offer to sell, sell, import, and otherwise transfer the Work,
      +   where such license applies only to those patent claims licensable
      +   by such Contributor that are necessarily infringed by their
      +   Contribution(s) alone or by combination of their Contribution(s)
      +   with the Work to which such Contribution(s) was submitted. If You
      +   institute patent litigation against any entity (including a
      +   cross-claim or counterclaim in a lawsuit) alleging that the Work
      +   or a Contribution incorporated within the Work constitutes direct
      +   or contributory patent infringement, then any patent licenses
      +   granted to You under this License for that Work shall terminate
      +   as of the date such litigation is filed.
      +
      +4. Redistribution. You may reproduce and distribute copies of the
      +   Work or Derivative Works thereof in any medium, with or without
      +   modifications, and in Source or Object form, provided that You
      +   meet the following conditions:
      +
      +   (a) You must give any other recipients of the Work or
      +       Derivative Works a copy of this License; and
      +
      +   (b) You must cause any modified files to carry prominent notices
      +       stating that You changed the files; and
      +
      +   (c) You must retain, in the Source form of any Derivative Works
      +       that You distribute, all copyright, patent, trademark, and
      +       attribution notices from the Source form of the Work,
      +       excluding those notices that do not pertain to any part of
      +       the Derivative Works; and
      +
      +   (d) If the Work includes a "NOTICE" text file as part of its
      +       distribution, then any Derivative Works that You distribute must
      +       include a readable copy of the attribution notices contained
      +       within such NOTICE file, excluding those notices that do not
      +       pertain to any part of the Derivative Works, in at least one
      +       of the following places: within a NOTICE text file distributed
      +       as part of the Derivative Works; within the Source form or
      +       documentation, if provided along with the Derivative Works; or,
      +       within a display generated by the Derivative Works, if and
      +       wherever such third-party notices normally appear. The contents
      +       of the NOTICE file are for informational purposes only and
      +       do not modify the License. You may add Your own attribution
      +       notices within Derivative Works that You distribute, alongside
      +       or as an addendum to the NOTICE text from the Work, provided
      +       that such additional attribution notices cannot be construed
      +       as modifying the License.
      +
      +   You may add Your own copyright statement to Your modifications and
      +   may provide additional or different license terms and conditions
      +   for use, reproduction, or distribution of Your modifications, or
      +   for any such Derivative Works as a whole, provided Your use,
      +   reproduction, and distribution of the Work otherwise complies with
      +   the conditions stated in this License.
      +
      +5. Submission of Contributions. Unless You explicitly state otherwise,
      +   any Contribution intentionally submitted for inclusion in the Work
      +   by You to the Licensor shall be under the terms and conditions of
      +   this License, without any additional terms or conditions.
      +   Notwithstanding the above, nothing herein shall supersede or modify
      +   the terms of any separate license agreement you may have executed
      +   with Licensor regarding such Contributions.
      +
      +6. Trademarks. This License does not grant permission to use the trade
      +   names, trademarks, service marks, or product names of the Licensor,
      +   except as required for reasonable and customary use in describing the
      +   origin of the Work and reproducing the content of the NOTICE file.
      +
      +7. Disclaimer of Warranty. Unless required by applicable law or
      +   agreed to in writing, Licensor provides the Work (and each
      +   Contributor provides its Contributions) on an "AS IS" BASIS,
      +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      +   implied, including, without limitation, any warranties or conditions
      +   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      +   PARTICULAR PURPOSE. You are solely responsible for determining the
      +   appropriateness of using or redistributing the Work and assume any
      +   risks associated with Your exercise of permissions under this License.
      +
      +8. Limitation of Liability. In no event and under no legal theory,
      +   whether in tort (including negligence), contract, or otherwise,
      +   unless required by applicable law (such as deliberate and grossly
      +   negligent acts) or agreed to in writing, shall any Contributor be
      +   liable to You for damages, including any direct, indirect, special,
      +   incidental, or consequential damages of any character arising as a
      +   result of this License or out of the use or inability to use the
      +   Work (including but not limited to damages for loss of goodwill,
      +   work stoppage, computer failure or malfunction, or any and all
      +   other commercial damages or losses), even if such Contributor
      +   has been advised of the possibility of such damages.
      +
      +9. Accepting Warranty or Additional Liability. While redistributing
      +   the Work or Derivative Works thereof, You may choose to offer,
      +   and charge a fee for, acceptance of support, warranty, indemnity,
      +   or other liability obligations and/or rights consistent with this
      +   License. However, in accepting such obligations, You may act only
      +   on Your own behalf and on Your sole responsibility, not on behalf
      +   of any other Contributor, and only if You agree to indemnify,
      +   defend, and hold each Contributor harmless for any liability
      +   incurred by, or claims asserted against, such Contributor by reason
      +   of your accepting any such warranty or additional liability.
      +
      +END OF TERMS AND CONDITIONS
      +
      +APPENDIX: How to apply the Apache License to your work.
      +
      +   To apply the Apache License to your work, attach the following
      +   boilerplate notice, with the fields enclosed by brackets "[]"
      +   replaced with your own identifying information. (Don't include
      +   the brackets!)  The text should be enclosed in the appropriate
      +   comment syntax for the file format. We also recommend that a
      +   file or class name and description of purpose be included on the
      +   same "printed page" as the copyright notice for easier
      +   identification within third-party archives.
      +
      +Copyright [yyyy] [name of copyright owner]
      +
      +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
      +
      +	http://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.
      +
      + +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      Apache License
      +Version 2.0, January 2004
      +http://www.apache.org/licenses/
       
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
       
       1. Definitions.
       
      -   "License" shall mean the terms and conditions for use, reproduction,
      -   and distribution as defined by Sections 1 through 9 of this document.
      +"License" shall mean the terms and conditions for use, reproduction,
      +and distribution as defined by Sections 1 through 9 of this document.
       
      -   "Licensor" shall mean the copyright owner or entity authorized by
      -   the copyright owner that is granting the License.
      +"Licensor" shall mean the copyright owner or entity authorized by
      +the copyright owner that is granting the License.
       
      -   "Legal Entity" shall mean the union of the acting entity and all
      -   other entities that control, are controlled by, or are under common
      -   control with that entity. For the purposes of this definition,
      -   "control" means (i) the power, direct or indirect, to cause the
      -   direction or management of such entity, whether by contract or
      -   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      -   outstanding shares, or (iii) beneficial ownership of such entity.
      +"Legal Entity" shall mean the union of the acting entity and all
      +other entities that control, are controlled by, or are under common
      +control with that entity. For the purposes of this definition,
      +"control" means (i) the power, direct or indirect, to cause the
      +direction or management of such entity, whether by contract or
      +otherwise, or (ii) ownership of fifty percent (50%) or more of the
      +outstanding shares, or (iii) beneficial ownership of such entity.
       
      -   "You" (or "Your") shall mean an individual or Legal Entity
      -   exercising permissions granted by this License.
      +"You" (or "Your") shall mean an individual or Legal Entity
      +exercising permissions granted by this License.
       
      -   "Source" form shall mean the preferred form for making modifications,
      -   including but not limited to software source code, documentation
      -   source, and configuration files.
      -
      -   "Object" form shall mean any form resulting from mechanical
      -   transformation or translation of a Source form, including but
      -   not limited to compiled object code, generated documentation,
      -   and conversions to other media types.
      -
      -   "Work" shall mean the work of authorship, whether in Source or
      -   Object form, made available under the License, as indicated by a
      -   copyright notice that is included in or attached to the work
      -   (an example is provided in the Appendix below).
      -
      -   "Derivative Works" shall mean any work, whether in Source or Object
      -   form, that is based on (or derived from) the Work and for which the
      -   editorial revisions, annotations, elaborations, or other modifications
      -   represent, as a whole, an original work of authorship. For the purposes
      -   of this License, Derivative Works shall not include works that remain
      -   separable from, or merely link (or bind by name) to the interfaces of,
      -   the Work and Derivative Works thereof.
      -
      -   "Contribution" shall mean any work of authorship, including
      -   the original version of the Work and any modifications or additions
      -   to that Work or Derivative Works thereof, that is intentionally
      -   submitted to Licensor for inclusion in the Work by the copyright owner
      -   or by an individual or Legal Entity authorized to submit on behalf of
      -   the copyright owner. For the purposes of this definition, "submitted"
      -   means any form of electronic, verbal, or written communication sent
      -   to the Licensor or its representatives, including but not limited to
      -   communication on electronic mailing lists, source code control systems,
      -   and issue tracking systems that are managed by, or on behalf of, the
      -   Licensor for the purpose of discussing and improving the Work, but
      -   excluding communication that is conspicuously marked or otherwise
      -   designated in writing by the copyright owner as "Not a Contribution."
      -
      -   "Contributor" shall mean Licensor and any individual or Legal Entity
      -   on behalf of whom a Contribution has been received by Licensor and
      -   subsequently incorporated within the Work.
      -
      -2. Grant of Copyright License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   copyright license to reproduce, prepare Derivative Works of,
      -   publicly display, publicly perform, sublicense, and distribute the
      -   Work and such Derivative Works in Source or Object form.
      -
      -3. Grant of Patent License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   (except as stated in this section) patent license to make, have made,
      -   use, offer to sell, sell, import, and otherwise transfer the Work,
      -   where such license applies only to those patent claims licensable
      -   by such Contributor that are necessarily infringed by their
      -   Contribution(s) alone or by combination of their Contribution(s)
      -   with the Work to which such Contribution(s) was submitted. If You
      -   institute patent litigation against any entity (including a
      -   cross-claim or counterclaim in a lawsuit) alleging that the Work
      -   or a Contribution incorporated within the Work constitutes direct
      -   or contributory patent infringement, then any patent licenses
      -   granted to You under this License for that Work shall terminate
      -   as of the date such litigation is filed.
      -
      -4. Redistribution. You may reproduce and distribute copies of the
      -   Work or Derivative Works thereof in any medium, with or without
      -   modifications, and in Source or Object form, provided that You
      -   meet the following conditions:
      -
      -   (a) You must give any other recipients of the Work or
      -       Derivative Works a copy of this License; and
      -
      -   (b) You must cause any modified files to carry prominent notices
      -       stating that You changed the files; and
      -
      -   (c) You must retain, in the Source form of any Derivative Works
      -       that You distribute, all copyright, patent, trademark, and
      -       attribution notices from the Source form of the Work,
      -       excluding those notices that do not pertain to any part of
      -       the Derivative Works; and
      -
      -   (d) If the Work includes a "NOTICE" text file as part of its
      -       distribution, then any Derivative Works that You distribute must
      -       include a readable copy of the attribution notices contained
      -       within such NOTICE file, excluding those notices that do not
      -       pertain to any part of the Derivative Works, in at least one
      -       of the following places: within a NOTICE text file distributed
      -       as part of the Derivative Works; within the Source form or
      -       documentation, if provided along with the Derivative Works; or,
      -       within a display generated by the Derivative Works, if and
      -       wherever such third-party notices normally appear. The contents
      -       of the NOTICE file are for informational purposes only and
      -       do not modify the License. You may add Your own attribution
      -       notices within Derivative Works that You distribute, alongside
      -       or as an addendum to the NOTICE text from the Work, provided
      -       that such additional attribution notices cannot be construed
      -       as modifying the License.
      -
      -   You may add Your own copyright statement to Your modifications and
      -   may provide additional or different license terms and conditions
      -   for use, reproduction, or distribution of Your modifications, or
      -   for any such Derivative Works as a whole, provided Your use,
      -   reproduction, and distribution of the Work otherwise complies with
      -   the conditions stated in this License.
      -
      -5. Submission of Contributions. Unless You explicitly state otherwise,
      -   any Contribution intentionally submitted for inclusion in the Work
      -   by You to the Licensor shall be under the terms and conditions of
      -   this License, without any additional terms or conditions.
      -   Notwithstanding the above, nothing herein shall supersede or modify
      -   the terms of any separate license agreement you may have executed
      -   with Licensor regarding such Contributions.
      -
      -6. Trademarks. This License does not grant permission to use the trade
      -   names, trademarks, service marks, or product names of the Licensor,
      -   except as required for reasonable and customary use in describing the
      -   origin of the Work and reproducing the content of the NOTICE file.
      -
      -7. Disclaimer of Warranty. Unless required by applicable law or
      -   agreed to in writing, Licensor provides the Work (and each
      -   Contributor provides its Contributions) on an "AS IS" BASIS,
      -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      -   implied, including, without limitation, any warranties or conditions
      -   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      -   PARTICULAR PURPOSE. You are solely responsible for determining the
      -   appropriateness of using or redistributing the Work and assume any
      -   risks associated with Your exercise of permissions under this License.
      -
      -8. Limitation of Liability. In no event and under no legal theory,
      -   whether in tort (including negligence), contract, or otherwise,
      -   unless required by applicable law (such as deliberate and grossly
      -   negligent acts) or agreed to in writing, shall any Contributor be
      -   liable to You for damages, including any direct, indirect, special,
      -   incidental, or consequential damages of any character arising as a
      -   result of this License or out of the use or inability to use the
      -   Work (including but not limited to damages for loss of goodwill,
      -   work stoppage, computer failure or malfunction, or any and all
      -   other commercial damages or losses), even if such Contributor
      -   has been advised of the possibility of such damages.
      -
      -9. Accepting Warranty or Additional Liability. While redistributing
      -   the Work or Derivative Works thereof, You may choose to offer,
      -   and charge a fee for, acceptance of support, warranty, indemnity,
      -   or other liability obligations and/or rights consistent with this
      -   License. However, in accepting such obligations, You may act only
      -   on Your own behalf and on Your sole responsibility, not on behalf
      -   of any other Contributor, and only if You agree to indemnify,
      -   defend, and hold each Contributor harmless for any liability
      -   incurred by, or claims asserted against, such Contributor by reason
      -   of your accepting any such warranty or additional liability.
      -
      -END OF TERMS AND CONDITIONS
      -
      -APPENDIX: How to apply the Apache License to your work.
      -
      -   To apply the Apache License to your work, attach the following
      -   boilerplate notice, with the fields enclosed by brackets "[]"
      -   replaced with your own identifying information. (Don't include
      -   the brackets!)  The text should be enclosed in the appropriate
      -   comment syntax for the file format. We also recommend that a
      -   file or class name and description of purpose be included on the
      -   same "printed page" as the copyright notice for easier
      -   identification within third-party archives.
      -
      -Copyright [yyyy] [name of copyright owner]
      -
      -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.
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
                                    Apache License
      -                        Version 2.0, January 2004
      -                     https://www.apache.org/licenses/LICENSE-2.0
      -
      -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      -
      -1. Definitions.
      -
      -   "License" shall mean the terms and conditions for use, reproduction,
      -   and distribution as defined by Sections 1 through 9 of this document.
      -
      -   "Licensor" shall mean the copyright owner or entity authorized by
      -   the copyright owner that is granting the License.
      -
      -   "Legal Entity" shall mean the union of the acting entity and all
      -   other entities that control, are controlled by, or are under common
      -   control with that entity. For the purposes of this definition,
      -   "control" means (i) the power, direct or indirect, to cause the
      -   direction or management of such entity, whether by contract or
      -   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      -   outstanding shares, or (iii) beneficial ownership of such entity.
      -
      -   "You" (or "Your") shall mean an individual or Legal Entity
      -   exercising permissions granted by this License.
      -
      -   "Source" form shall mean the preferred form for making modifications,
      -   including but not limited to software source code, documentation
      -   source, and configuration files.
      -
      -   "Object" form shall mean any form resulting from mechanical
      -   transformation or translation of a Source form, including but
      -   not limited to compiled object code, generated documentation,
      -   and conversions to other media types.
      -
      -   "Work" shall mean the work of authorship, whether in Source or
      -   Object form, made available under the License, as indicated by a
      -   copyright notice that is included in or attached to the work
      -   (an example is provided in the Appendix below).
      -
      -   "Derivative Works" shall mean any work, whether in Source or Object
      -   form, that is based on (or derived from) the Work and for which the
      -   editorial revisions, annotations, elaborations, or other modifications
      -   represent, as a whole, an original work of authorship. For the purposes
      -   of this License, Derivative Works shall not include works that remain
      -   separable from, or merely link (or bind by name) to the interfaces of,
      -   the Work and Derivative Works thereof.
      -
      -   "Contribution" shall mean any work of authorship, including
      -   the original version of the Work and any modifications or additions
      -   to that Work or Derivative Works thereof, that is intentionally
      -   submitted to Licensor for inclusion in the Work by the copyright owner
      -   or by an individual or Legal Entity authorized to submit on behalf of
      -   the copyright owner. For the purposes of this definition, "submitted"
      -   means any form of electronic, verbal, or written communication sent
      -   to the Licensor or its representatives, including but not limited to
      -   communication on electronic mailing lists, source code control systems,
      -   and issue tracking systems that are managed by, or on behalf of, the
      -   Licensor for the purpose of discussing and improving the Work, but
      -   excluding communication that is conspicuously marked or otherwise
      -   designated in writing by the copyright owner as "Not a Contribution."
      -
      -   "Contributor" shall mean Licensor and any individual or Legal Entity
      -   on behalf of whom a Contribution has been received by Licensor and
      -   subsequently incorporated within the Work.
      -
      -2. Grant of Copyright License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   copyright license to reproduce, prepare Derivative Works of,
      -   publicly display, publicly perform, sublicense, and distribute the
      -   Work and such Derivative Works in Source or Object form.
      -
      -3. Grant of Patent License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   (except as stated in this section) patent license to make, have made,
      -   use, offer to sell, sell, import, and otherwise transfer the Work,
      -   where such license applies only to those patent claims licensable
      -   by such Contributor that are necessarily infringed by their
      -   Contribution(s) alone or by combination of their Contribution(s)
      -   with the Work to which such Contribution(s) was submitted. If You
      -   institute patent litigation against any entity (including a
      -   cross-claim or counterclaim in a lawsuit) alleging that the Work
      -   or a Contribution incorporated within the Work constitutes direct
      -   or contributory patent infringement, then any patent licenses
      -   granted to You under this License for that Work shall terminate
      -   as of the date such litigation is filed.
      -
      -4. Redistribution. You may reproduce and distribute copies of the
      -   Work or Derivative Works thereof in any medium, with or without
      -   modifications, and in Source or Object form, provided that You
      -   meet the following conditions:
      -
      -   (a) You must give any other recipients of the Work or
      -       Derivative Works a copy of this License; and
      -
      -   (b) You must cause any modified files to carry prominent notices
      -       stating that You changed the files; and
      -
      -   (c) You must retain, in the Source form of any Derivative Works
      -       that You distribute, all copyright, patent, trademark, and
      -       attribution notices from the Source form of the Work,
      -       excluding those notices that do not pertain to any part of
      -       the Derivative Works; and
      -
      -   (d) If the Work includes a "NOTICE" text file as part of its
      -       distribution, then any Derivative Works that You distribute must
      -       include a readable copy of the attribution notices contained
      -       within such NOTICE file, excluding those notices that do not
      -       pertain to any part of the Derivative Works, in at least one
      -       of the following places: within a NOTICE text file distributed
      -       as part of the Derivative Works; within the Source form or
      -       documentation, if provided along with the Derivative Works; or,
      -       within a display generated by the Derivative Works, if and
      -       wherever such third-party notices normally appear. The contents
      -       of the NOTICE file are for informational purposes only and
      -       do not modify the License. You may add Your own attribution
      -       notices within Derivative Works that You distribute, alongside
      -       or as an addendum to the NOTICE text from the Work, provided
      -       that such additional attribution notices cannot be construed
      -       as modifying the License.
      -
      -   You may add Your own copyright statement to Your modifications and
      -   may provide additional or different license terms and conditions
      -   for use, reproduction, or distribution of Your modifications, or
      -   for any such Derivative Works as a whole, provided Your use,
      -   reproduction, and distribution of the Work otherwise complies with
      -   the conditions stated in this License.
      -
      -5. Submission of Contributions. Unless You explicitly state otherwise,
      -   any Contribution intentionally submitted for inclusion in the Work
      -   by You to the Licensor shall be under the terms and conditions of
      -   this License, without any additional terms or conditions.
      -   Notwithstanding the above, nothing herein shall supersede or modify
      -   the terms of any separate license agreement you may have executed
      -   with Licensor regarding such Contributions.
      -
      -6. Trademarks. This License does not grant permission to use the trade
      -   names, trademarks, service marks, or product names of the Licensor,
      -   except as required for reasonable and customary use in describing the
      -   origin of the Work and reproducing the content of the NOTICE file.
      -
      -7. Disclaimer of Warranty. Unless required by applicable law or
      -   agreed to in writing, Licensor provides the Work (and each
      -   Contributor provides its Contributions) on an "AS IS" BASIS,
      -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      -   implied, including, without limitation, any warranties or conditions
      -   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      -   PARTICULAR PURPOSE. You are solely responsible for determining the
      -   appropriateness of using or redistributing the Work and assume any
      -   risks associated with Your exercise of permissions under this License.
      -
      -8. Limitation of Liability. In no event and under no legal theory,
      -   whether in tort (including negligence), contract, or otherwise,
      -   unless required by applicable law (such as deliberate and grossly
      -   negligent acts) or agreed to in writing, shall any Contributor be
      -   liable to You for damages, including any direct, indirect, special,
      -   incidental, or consequential damages of any character arising as a
      -   result of this License or out of the use or inability to use the
      -   Work (including but not limited to damages for loss of goodwill,
      -   work stoppage, computer failure or malfunction, or any and all
      -   other commercial damages or losses), even if such Contributor
      -   has been advised of the possibility of such damages.
      -
      -9. Accepting Warranty or Additional Liability. While redistributing
      -   the Work or Derivative Works thereof, You may choose to offer,
      -   and charge a fee for, acceptance of support, warranty, indemnity,
      -   or other liability obligations and/or rights consistent with this
      -   License. However, in accepting such obligations, You may act only
      -   on Your own behalf and on Your sole responsibility, not on behalf
      -   of any other Contributor, and only if You agree to indemnify,
      -   defend, and hold each Contributor harmless for any liability
      -   incurred by, or claims asserted against, such Contributor by reason
      -   of your accepting any such warranty or additional liability.
      -
      -END OF TERMS AND CONDITIONS
      -
      -APPENDIX: How to apply the Apache License to your work.
      -
      -   To apply the Apache License to your work, attach the following
      -   boilerplate notice, with the fields enclosed by brackets "[]"
      -   replaced with your own identifying information. (Don't include
      -   the brackets!)  The text should be enclosed in the appropriate
      -   comment syntax for the file format. We also recommend that a
      -   file or class name and description of purpose be included on the
      -   same "printed page" as the copyright notice for easier
      -   identification within third-party archives.
      -
      -Copyright [yyyy] [name of copyright owner]
      -
      -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.
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
                                    Apache License
      -                        Version 2.0, January 2004
      -                     http://www.apache.org/licenses/
      -
      -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      -
      -1. Definitions.
      -
      -   "License" shall mean the terms and conditions for use, reproduction,
      -   and distribution as defined by Sections 1 through 9 of this document.
      -
      -   "Licensor" shall mean the copyright owner or entity authorized by
      -   the copyright owner that is granting the License.
      -
      -   "Legal Entity" shall mean the union of the acting entity and all
      -   other entities that control, are controlled by, or are under common
      -   control with that entity. For the purposes of this definition,
      -   "control" means (i) the power, direct or indirect, to cause the
      -   direction or management of such entity, whether by contract or
      -   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      -   outstanding shares, or (iii) beneficial ownership of such entity.
      -
      -   "You" (or "Your") shall mean an individual or Legal Entity
      -   exercising permissions granted by this License.
      -
      -   "Source" form shall mean the preferred form for making modifications,
      -   including but not limited to software source code, documentation
      -   source, and configuration files.
      -
      -   "Object" form shall mean any form resulting from mechanical
      -   transformation or translation of a Source form, including but
      -   not limited to compiled object code, generated documentation,
      -   and conversions to other media types.
      -
      -   "Work" shall mean the work of authorship, whether in Source or
      -   Object form, made available under the License, as indicated by a
      -   copyright notice that is included in or attached to the work
      -   (an example is provided in the Appendix below).
      -
      -   "Derivative Works" shall mean any work, whether in Source or Object
      -   form, that is based on (or derived from) the Work and for which the
      -   editorial revisions, annotations, elaborations, or other modifications
      -   represent, as a whole, an original work of authorship. For the purposes
      -   of this License, Derivative Works shall not include works that remain
      -   separable from, or merely link (or bind by name) to the interfaces of,
      -   the Work and Derivative Works thereof.
      -
      -   "Contribution" shall mean any work of authorship, including
      -   the original version of the Work and any modifications or additions
      -   to that Work or Derivative Works thereof, that is intentionally
      -   submitted to Licensor for inclusion in the Work by the copyright owner
      -   or by an individual or Legal Entity authorized to submit on behalf of
      -   the copyright owner. For the purposes of this definition, "submitted"
      -   means any form of electronic, verbal, or written communication sent
      -   to the Licensor or its representatives, including but not limited to
      -   communication on electronic mailing lists, source code control systems,
      -   and issue tracking systems that are managed by, or on behalf of, the
      -   Licensor for the purpose of discussing and improving the Work, but
      -   excluding communication that is conspicuously marked or otherwise
      -   designated in writing by the copyright owner as "Not a Contribution."
      -
      -   "Contributor" shall mean Licensor and any individual or Legal Entity
      -   on behalf of whom a Contribution has been received by Licensor and
      -   subsequently incorporated within the Work.
      -
      -2. Grant of Copyright License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   copyright license to reproduce, prepare Derivative Works of,
      -   publicly display, publicly perform, sublicense, and distribute the
      -   Work and such Derivative Works in Source or Object form.
      -
      -3. Grant of Patent License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   (except as stated in this section) patent license to make, have made,
      -   use, offer to sell, sell, import, and otherwise transfer the Work,
      -   where such license applies only to those patent claims licensable
      -   by such Contributor that are necessarily infringed by their
      -   Contribution(s) alone or by combination of their Contribution(s)
      -   with the Work to which such Contribution(s) was submitted. If You
      -   institute patent litigation against any entity (including a
      -   cross-claim or counterclaim in a lawsuit) alleging that the Work
      -   or a Contribution incorporated within the Work constitutes direct
      -   or contributory patent infringement, then any patent licenses
      -   granted to You under this License for that Work shall terminate
      -   as of the date such litigation is filed.
      -
      -4. Redistribution. You may reproduce and distribute copies of the
      -   Work or Derivative Works thereof in any medium, with or without
      -   modifications, and in Source or Object form, provided that You
      -   meet the following conditions:
      -
      -   (a) You must give any other recipients of the Work or
      -       Derivative Works a copy of this License; and
      -
      -   (b) You must cause any modified files to carry prominent notices
      -       stating that You changed the files; and
      -
      -   (c) You must retain, in the Source form of any Derivative Works
      -       that You distribute, all copyright, patent, trademark, and
      -       attribution notices from the Source form of the Work,
      -       excluding those notices that do not pertain to any part of
      -       the Derivative Works; and
      -
      -   (d) If the Work includes a "NOTICE" text file as part of its
      -       distribution, then any Derivative Works that You distribute must
      -       include a readable copy of the attribution notices contained
      -       within such NOTICE file, excluding those notices that do not
      -       pertain to any part of the Derivative Works, in at least one
      -       of the following places: within a NOTICE text file distributed
      -       as part of the Derivative Works; within the Source form or
      -       documentation, if provided along with the Derivative Works; or,
      -       within a display generated by the Derivative Works, if and
      -       wherever such third-party notices normally appear. The contents
      -       of the NOTICE file are for informational purposes only and
      -       do not modify the License. You may add Your own attribution
      -       notices within Derivative Works that You distribute, alongside
      -       or as an addendum to the NOTICE text from the Work, provided
      -       that such additional attribution notices cannot be construed
      -       as modifying the License.
      -
      -   You may add Your own copyright statement to Your modifications and
      -   may provide additional or different license terms and conditions
      -   for use, reproduction, or distribution of Your modifications, or
      -   for any such Derivative Works as a whole, provided Your use,
      -   reproduction, and distribution of the Work otherwise complies with
      -   the conditions stated in this License.
      -
      -5. Submission of Contributions. Unless You explicitly state otherwise,
      -   any Contribution intentionally submitted for inclusion in the Work
      -   by You to the Licensor shall be under the terms and conditions of
      -   this License, without any additional terms or conditions.
      -   Notwithstanding the above, nothing herein shall supersede or modify
      -   the terms of any separate license agreement you may have executed
      -   with Licensor regarding such Contributions.
      -
      -6. Trademarks. This License does not grant permission to use the trade
      -   names, trademarks, service marks, or product names of the Licensor,
      -   except as required for reasonable and customary use in describing the
      -   origin of the Work and reproducing the content of the NOTICE file.
      -
      -7. Disclaimer of Warranty. Unless required by applicable law or
      -   agreed to in writing, Licensor provides the Work (and each
      -   Contributor provides its Contributions) on an "AS IS" BASIS,
      -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      -   implied, including, without limitation, any warranties or conditions
      -   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      -   PARTICULAR PURPOSE. You are solely responsible for determining the
      -   appropriateness of using or redistributing the Work and assume any
      -   risks associated with Your exercise of permissions under this License.
      -
      -8. Limitation of Liability. In no event and under no legal theory,
      -   whether in tort (including negligence), contract, or otherwise,
      -   unless required by applicable law (such as deliberate and grossly
      -   negligent acts) or agreed to in writing, shall any Contributor be
      -   liable to You for damages, including any direct, indirect, special,
      -   incidental, or consequential damages of any character arising as a
      -   result of this License or out of the use or inability to use the
      -   Work (including but not limited to damages for loss of goodwill,
      -   work stoppage, computer failure or malfunction, or any and all
      -   other commercial damages or losses), even if such Contributor
      -   has been advised of the possibility of such damages.
      -
      -9. Accepting Warranty or Additional Liability. While redistributing
      -   the Work or Derivative Works thereof, You may choose to offer,
      -   and charge a fee for, acceptance of support, warranty, indemnity,
      -   or other liability obligations and/or rights consistent with this
      -   License. However, in accepting such obligations, You may act only
      -   on Your own behalf and on Your sole responsibility, not on behalf
      -   of any other Contributor, and only if You agree to indemnify,
      -   defend, and hold each Contributor harmless for any liability
      -   incurred by, or claims asserted against, such Contributor by reason
      -   of your accepting any such warranty or additional liability.
      -
      -END OF TERMS AND CONDITIONS
      -
      -APPENDIX: How to apply the Apache License to your work.
      -
      -   To apply the Apache License to your work, attach the following
      -   boilerplate notice, with the fields enclosed by brackets "[]"
      -   replaced with your own identifying information. (Don't include
      -   the brackets!)  The text should be enclosed in the appropriate
      -   comment syntax for the file format. We also recommend that a
      -   file or class name and description of purpose be included on the
      -   same "printed page" as the copyright notice for easier
      -   identification within third-party archives.
      -
      -Copyright [yyyy] [name of copyright owner]
      -
      -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
      -
      -	http://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.
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
                                    Apache License
      -                        Version 2.0, January 2004
      -                     http://www.apache.org/licenses/
      -
      -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      -
      -1. Definitions.
      -
      -   "License" shall mean the terms and conditions for use, reproduction,
      -   and distribution as defined by Sections 1 through 9 of this document.
      -
      -   "Licensor" shall mean the copyright owner or entity authorized by
      -   the copyright owner that is granting the License.
      -
      -   "Legal Entity" shall mean the union of the acting entity and all
      -   other entities that control, are controlled by, or are under common
      -   control with that entity. For the purposes of this definition,
      -   "control" means (i) the power, direct or indirect, to cause the
      -   direction or management of such entity, whether by contract or
      -   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      -   outstanding shares, or (iii) beneficial ownership of such entity.
      -
      -   "You" (or "Your") shall mean an individual or Legal Entity
      -   exercising permissions granted by this License.
      -
      -   "Source" form shall mean the preferred form for making modifications,
      -   including but not limited to software source code, documentation
      -   source, and configuration files.
      -
      -   "Object" form shall mean any form resulting from mechanical
      -   transformation or translation of a Source form, including but
      -   not limited to compiled object code, generated documentation,
      -   and conversions to other media types.
      -
      -   "Work" shall mean the work of authorship, whether in Source or
      -   Object form, made available under the License, as indicated by a
      -   copyright notice that is included in or attached to the work
      -   (an example is provided in the Appendix below).
      -
      -   "Derivative Works" shall mean any work, whether in Source or Object
      -   form, that is based on (or derived from) the Work and for which the
      -   editorial revisions, annotations, elaborations, or other modifications
      -   represent, as a whole, an original work of authorship. For the purposes
      -   of this License, Derivative Works shall not include works that remain
      -   separable from, or merely link (or bind by name) to the interfaces of,
      -   the Work and Derivative Works thereof.
      -
      -   "Contribution" shall mean any work of authorship, including
      -   the original version of the Work and any modifications or additions
      -   to that Work or Derivative Works thereof, that is intentionally
      -   submitted to Licensor for inclusion in the Work by the copyright owner
      -   or by an individual or Legal Entity authorized to submit on behalf of
      -   the copyright owner. For the purposes of this definition, "submitted"
      -   means any form of electronic, verbal, or written communication sent
      -   to the Licensor or its representatives, including but not limited to
      -   communication on electronic mailing lists, source code control systems,
      -   and issue tracking systems that are managed by, or on behalf of, the
      -   Licensor for the purpose of discussing and improving the Work, but
      -   excluding communication that is conspicuously marked or otherwise
      -   designated in writing by the copyright owner as "Not a Contribution."
      -
      -   "Contributor" shall mean Licensor and any individual or Legal Entity
      -   on behalf of whom a Contribution has been received by Licensor and
      -   subsequently incorporated within the Work.
      -
      -2. Grant of Copyright License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   copyright license to reproduce, prepare Derivative Works of,
      -   publicly display, publicly perform, sublicense, and distribute the
      -   Work and such Derivative Works in Source or Object form.
      -
      -3. Grant of Patent License. Subject to the terms and conditions of
      -   this License, each Contributor hereby grants to You a perpetual,
      -   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      -   (except as stated in this section) patent license to make, have made,
      -   use, offer to sell, sell, import, and otherwise transfer the Work,
      -   where such license applies only to those patent claims licensable
      -   by such Contributor that are necessarily infringed by their
      -   Contribution(s) alone or by combination of their Contribution(s)
      -   with the Work to which such Contribution(s) was submitted. If You
      -   institute patent litigation against any entity (including a
      -   cross-claim or counterclaim in a lawsuit) alleging that the Work
      -   or a Contribution incorporated within the Work constitutes direct
      -   or contributory patent infringement, then any patent licenses
      -   granted to You under this License for that Work shall terminate
      -   as of the date such litigation is filed.
      -
      -4. Redistribution. You may reproduce and distribute copies of the
      -   Work or Derivative Works thereof in any medium, with or without
      -   modifications, and in Source or Object form, provided that You
      -   meet the following conditions:
      -
      -   (a) You must give any other recipients of the Work or
      -       Derivative Works a copy of this License; and
      -
      -   (b) You must cause any modified files to carry prominent notices
      -       stating that You changed the files; and
      -
      -   (c) You must retain, in the Source form of any Derivative Works
      -       that You distribute, all copyright, patent, trademark, and
      -       attribution notices from the Source form of the Work,
      -       excluding those notices that do not pertain to any part of
      -       the Derivative Works; and
      -
      -   (d) If the Work includes a "NOTICE" text file as part of its
      -       distribution, then any Derivative Works that You distribute must
      -       include a readable copy of the attribution notices contained
      -       within such NOTICE file, excluding those notices that do not
      -       pertain to any part of the Derivative Works, in at least one
      -       of the following places: within a NOTICE text file distributed
      -       as part of the Derivative Works; within the Source form or
      -       documentation, if provided along with the Derivative Works; or,
      -       within a display generated by the Derivative Works, if and
      -       wherever such third-party notices normally appear. The contents
      -       of the NOTICE file are for informational purposes only and
      -       do not modify the License. You may add Your own attribution
      -       notices within Derivative Works that You distribute, alongside
      -       or as an addendum to the NOTICE text from the Work, provided
      -       that such additional attribution notices cannot be construed
      -       as modifying the License.
      -
      -   You may add Your own copyright statement to Your modifications and
      -   may provide additional or different license terms and conditions
      -   for use, reproduction, or distribution of Your modifications, or
      -   for any such Derivative Works as a whole, provided Your use,
      -   reproduction, and distribution of the Work otherwise complies with
      -   the conditions stated in this License.
      -
      -5. Submission of Contributions. Unless You explicitly state otherwise,
      -   any Contribution intentionally submitted for inclusion in the Work
      -   by You to the Licensor shall be under the terms and conditions of
      -   this License, without any additional terms or conditions.
      -   Notwithstanding the above, nothing herein shall supersede or modify
      -   the terms of any separate license agreement you may have executed
      -   with Licensor regarding such Contributions.
      -
      -6. Trademarks. This License does not grant permission to use the trade
      -   names, trademarks, service marks, or product names of the Licensor,
      -   except as required for reasonable and customary use in describing the
      -   origin of the Work and reproducing the content of the NOTICE file.
      -
      -7. Disclaimer of Warranty. Unless required by applicable law or
      -   agreed to in writing, Licensor provides the Work (and each
      -   Contributor provides its Contributions) on an "AS IS" BASIS,
      -   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      -   implied, including, without limitation, any warranties or conditions
      -   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      -   PARTICULAR PURPOSE. You are solely responsible for determining the
      -   appropriateness of using or redistributing the Work and assume any
      -   risks associated with Your exercise of permissions under this License.
      -
      -8. Limitation of Liability. In no event and under no legal theory,
      -   whether in tort (including negligence), contract, or otherwise,
      -   unless required by applicable law (such as deliberate and grossly
      -   negligent acts) or agreed to in writing, shall any Contributor be
      -   liable to You for damages, including any direct, indirect, special,
      -   incidental, or consequential damages of any character arising as a
      -   result of this License or out of the use or inability to use the
      -   Work (including but not limited to damages for loss of goodwill,
      -   work stoppage, computer failure or malfunction, or any and all
      -   other commercial damages or losses), even if such Contributor
      -   has been advised of the possibility of such damages.
      -
      -9. Accepting Warranty or Additional Liability. While redistributing
      -   the Work or Derivative Works thereof, You may choose to offer,
      -   and charge a fee for, acceptance of support, warranty, indemnity,
      -   or other liability obligations and/or rights consistent with this
      -   License. However, in accepting such obligations, You may act only
      -   on Your own behalf and on Your sole responsibility, not on behalf
      -   of any other Contributor, and only if You agree to indemnify,
      -   defend, and hold each Contributor harmless for any liability
      -   incurred by, or claims asserted against, such Contributor by reason
      -   of your accepting any such warranty or additional liability.
      -
      -END OF TERMS AND CONDITIONS
      -
      -Copyright 2017 Aaron Power
      -
      -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
      -
      -	http://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.
      -
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
      Apache License
      -Version 2.0, January 2004
      -http://www.apache.org/licenses/
      -
      -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      -
      -1. Definitions.
      -
      -"License" shall mean the terms and conditions for use, reproduction,
      -and distribution as defined by Sections 1 through 9 of this document.
      -
      -"Licensor" shall mean the copyright owner or entity authorized by
      -the copyright owner that is granting the License.
      -
      -"Legal Entity" shall mean the union of the acting entity and all
      -other entities that control, are controlled by, or are under common
      -control with that entity. For the purposes of this definition,
      -"control" means (i) the power, direct or indirect, to cause the
      -direction or management of such entity, whether by contract or
      -otherwise, or (ii) ownership of fifty percent (50%) or more of the
      -outstanding shares, or (iii) beneficial ownership of such entity.
      -
      -"You" (or "Your") shall mean an individual or Legal Entity
      -exercising permissions granted by this License.
      -
      -"Source" form shall mean the preferred form for making modifications,
      -including but not limited to software source code, documentation
      -source, and configuration files.
      +"Source" form shall mean the preferred form for making modifications,
      +including but not limited to software source code, documentation
      +source, and configuration files.
       
       "Object" form shall mean any form resulting from mechanical
       transformation or translation of a Source form, including but
      @@ -5501,7 +4879,6 @@ 

      Used by:

      Apache License 2.0

      Used by:

      @@ -5537,33 +4914,347 @@

      Used by:

      3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +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 + +http://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. +
      +
    • +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      Copyright 2011-2017 Google Inc.
      +          2013 Jack Lloyd
      +          2013-2014 Steven Fackler
      +
      +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
      +
      +    http://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.
      +
      +
    • +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      Copyright 2015 Nicholas Allegra (comex).
      +
      +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
      +
      +    http://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.
      +
      +
    • +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      Licensed under the Apache License, Version 2.0
      +<LICENSE-APACHE or
      +http://www.apache.org/licenses/LICENSE-2.0> or the MIT
      +license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
      +at your option. All files in the project carrying such
      +notice may not be copied, modified, or distributed except
      +according to those terms.
      +
      +
    • +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      MIT OR Apache-2.0
      +
    • +
    • +

      Apache License 2.0

      +

      Used by:

      + +
      Rust-chrono is dual-licensed under The MIT License [1] and
      +Apache 2.0 License [2]. Copyright (c) 2014--2017, Kang Seonghoon and
      +contributors.
      +
      +Nota Bene: This is same as the Rust Project's own license.
      +
      +
      +[1]: <http://opensource.org/licenses/MIT>, which is reproduced below:
      +
      +~~~~
      +The MIT License (MIT)
      +
      +Copyright (c) 2014, Kang Seonghoon.
      +
      +Permission is hereby granted, free of charge, to any person obtaining a copy
      +of this software and associated documentation files (the "Software"), to deal
      +in the Software without restriction, including without limitation the rights
      +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      +copies of the Software, and to permit persons to whom the Software is
      +furnished to do so, subject to the following conditions:
      +
      +The above copyright notice and this permission notice shall be included in
      +all copies or substantial portions of the Software.
      +
      +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
      +THE SOFTWARE.
      +~~~~
      +
      +
      +[2]: <http://www.apache.org/licenses/LICENSE-2.0>, which is reproduced below:
      +
      +~~~~
      +                              Apache License
      +                        Version 2.0, January 2004
      +                     http://www.apache.org/licenses/
      +
      +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
      +
      +1. Definitions.
      +
      +   "License" shall mean the terms and conditions for use, reproduction,
      +   and distribution as defined by Sections 1 through 9 of this document.
      +
      +   "Licensor" shall mean the copyright owner or entity authorized by
      +   the copyright owner that is granting the License.
      +
      +   "Legal Entity" shall mean the union of the acting entity and all
      +   other entities that control, are controlled by, or are under common
      +   control with that entity. For the purposes of this definition,
      +   "control" means (i) the power, direct or indirect, to cause the
      +   direction or management of such entity, whether by contract or
      +   otherwise, or (ii) ownership of fifty percent (50%) or more of the
      +   outstanding shares, or (iii) beneficial ownership of such entity.
      +
      +   "You" (or "Your") shall mean an individual or Legal Entity
      +   exercising permissions granted by this License.
      +
      +   "Source" form shall mean the preferred form for making modifications,
      +   including but not limited to software source code, documentation
      +   source, and configuration files.
      +
      +   "Object" form shall mean any form resulting from mechanical
      +   transformation or translation of a Source form, including but
      +   not limited to compiled object code, generated documentation,
      +   and conversions to other media types.
      +
      +   "Work" shall mean the work of authorship, whether in Source or
      +   Object form, made available under the License, as indicated by a
      +   copyright notice that is included in or attached to the work
      +   (an example is provided in the Appendix below).
      +
      +   "Derivative Works" shall mean any work, whether in Source or Object
      +   form, that is based on (or derived from) the Work and for which the
      +   editorial revisions, annotations, elaborations, or other modifications
      +   represent, as a whole, an original work of authorship. For the purposes
      +   of this License, Derivative Works shall not include works that remain
      +   separable from, or merely link (or bind by name) to the interfaces of,
      +   the Work and Derivative Works thereof.
      +
      +   "Contribution" shall mean any work of authorship, including
      +   the original version of the Work and any modifications or additions
      +   to that Work or Derivative Works thereof, that is intentionally
      +   submitted to Licensor for inclusion in the Work by the copyright owner
      +   or by an individual or Legal Entity authorized to submit on behalf of
      +   the copyright owner. For the purposes of this definition, "submitted"
      +   means any form of electronic, verbal, or written communication sent
      +   to the Licensor or its representatives, including but not limited to
      +   communication on electronic mailing lists, source code control systems,
      +   and issue tracking systems that are managed by, or on behalf of, the
      +   Licensor for the purpose of discussing and improving the Work, but
      +   excluding communication that is conspicuously marked or otherwise
      +   designated in writing by the copyright owner as "Not a Contribution."
      +
      +   "Contributor" shall mean Licensor and any individual or Legal Entity
      +   on behalf of whom a Contribution has been received by Licensor and
      +   subsequently incorporated within the Work.
      +
      +2. Grant of Copyright License. Subject to the terms and conditions of
      +   this License, each Contributor hereby grants to You a perpetual,
      +   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      +   copyright license to reproduce, prepare Derivative Works of,
      +   publicly display, publicly perform, sublicense, and distribute the
      +   Work and such Derivative Works in Source or Object form.
      +
      +3. Grant of Patent License. Subject to the terms and conditions of
      +   this License, each Contributor hereby grants to You a perpetual,
      +   worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      +   (except as stated in this section) patent license to make, have made,
      +   use, offer to sell, sell, import, and otherwise transfer the Work,
      +   where such license applies only to those patent claims licensable
      +   by such Contributor that are necessarily infringed by their
      +   Contribution(s) alone or by combination of their Contribution(s)
      +   with the Work to which such Contribution(s) was submitted. If You
      +   institute patent litigation against any entity (including a
      +   cross-claim or counterclaim in a lawsuit) alleging that the Work
      +   or a Contribution incorporated within the Work constitutes direct
      +   or contributory patent infringement, then any patent licenses
      +   granted to You under this License for that Work shall terminate
      +   as of the date such litigation is filed.
      +
      +4. Redistribution. You may reproduce and distribute copies of the
      +   Work or Derivative Works thereof in any medium, with or without
      +   modifications, and in Source or Object form, provided that You
      +   meet the following conditions:
       
      -     (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
      +   (a) You must give any other recipients of the Work or
      +       Derivative Works a copy of this License; and
       
      -     (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
      +   (b) You must cause any modified files to carry prominent notices
      +       stating that You changed the files; and
       
      -     (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
      +   (c) You must retain, in the Source form of any Derivative Works
      +       that You distribute, all copyright, patent, trademark, and
      +       attribution notices from the Source form of the Work,
      +       excluding those notices that do not pertain to any part of
      +       the Derivative Works; and
       
      -     (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
      +   (d) If the Work includes a "NOTICE" text file as part of its
      +       distribution, then any Derivative Works that You distribute must
      +       include a readable copy of the attribution notices contained
      +       within such NOTICE file, excluding those notices that do not
      +       pertain to any part of the Derivative Works, in at least one
      +       of the following places: within a NOTICE text file distributed
      +       as part of the Derivative Works; within the Source form or
      +       documentation, if provided along with the Derivative Works; or,
      +       within a display generated by the Derivative Works, if and
      +       wherever such third-party notices normally appear. The contents
      +       of the NOTICE file are for informational purposes only and
      +       do not modify the License. You may add Your own attribution
      +       notices within Derivative Works that You distribute, alongside
      +       or as an addendum to the NOTICE text from the Work, provided
      +       that such additional attribution notices cannot be construed
      +       as modifying the License.
       
      -     You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
      +   You may add Your own copyright statement to Your modifications and
      +   may provide additional or different license terms and conditions
      +   for use, reproduction, or distribution of Your modifications, or
      +   for any such Derivative Works as a whole, provided Your use,
      +   reproduction, and distribution of the Work otherwise complies with
      +   the conditions stated in this License.
       
      -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
      +5. Submission of Contributions. Unless You explicitly state otherwise,
      +   any Contribution intentionally submitted for inclusion in the Work
      +   by You to the Licensor shall be under the terms and conditions of
      +   this License, without any additional terms or conditions.
      +   Notwithstanding the above, nothing herein shall supersede or modify
      +   the terms of any separate license agreement you may have executed
      +   with Licensor regarding such Contributions.
       
      -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
      +6. Trademarks. This License does not grant permission to use the trade
      +   names, trademarks, service marks, or product names of the Licensor,
      +   except as required for reasonable and customary use in describing the
      +   origin of the Work and reproducing the content of the NOTICE file.
       
      -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
      +7. Disclaimer of Warranty. Unless required by applicable law or
      +   agreed to in writing, Licensor provides the Work (and each
      +   Contributor provides its Contributions) on an "AS IS" BASIS,
      +   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      +   implied, including, without limitation, any warranties or conditions
      +   of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      +   PARTICULAR PURPOSE. You are solely responsible for determining the
      +   appropriateness of using or redistributing the Work and assume any
      +   risks associated with Your exercise of permissions under this License.
       
      -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
      +8. Limitation of Liability. In no event and under no legal theory,
      +   whether in tort (including negligence), contract, or otherwise,
      +   unless required by applicable law (such as deliberate and grossly
      +   negligent acts) or agreed to in writing, shall any Contributor be
      +   liable to You for damages, including any direct, indirect, special,
      +   incidental, or consequential damages of any character arising as a
      +   result of this License or out of the use or inability to use the
      +   Work (including but not limited to damages for loss of goodwill,
      +   work stoppage, computer failure or malfunction, or any and all
      +   other commercial damages or losses), even if such Contributor
      +   has been advised of the possibility of such damages.
       
      -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
      +9. Accepting Warranty or Additional Liability. While redistributing
      +   the Work or Derivative Works thereof, You may choose to offer,
      +   and charge a fee for, acceptance of support, warranty, indemnity,
      +   or other liability obligations and/or rights consistent with this
      +   License. However, in accepting such obligations, You may act only
      +   on Your own behalf and on Your sole responsibility, not on behalf
      +   of any other Contributor, and only if You agree to indemnify,
      +   defend, and hold each Contributor harmless for any liability
      +   incurred by, or claims asserted against, such Contributor by reason
      +   of your accepting any such warranty or additional liability.
       
       END OF TERMS AND CONDITIONS
       
       APPENDIX: How to apply the Apache License to your work.
       
      -To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!)  The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
      +   To apply the Apache License to your work, attach the following
      +   boilerplate notice, with the fields enclosed by brackets "[]"
      +   replaced with your own identifying information. (Don't include
      +   the brackets!)  The text should be enclosed in the appropriate
      +   comment syntax for the file format. We also recommend that a
      +   file or class name and description of purpose be included on the
      +   same "printed page" as the copyright notice for easier
      +   identification within third-party archives.
       
       Copyright [yyyy] [name of copyright owner]
       
      @@ -5571,84 +5262,17 @@ 

      Used by:

      you may not use this file except in compliance with the License. You may obtain a copy of the License at -http://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. -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
      Copyright 2011-2017 Google Inc.
      -          2013 Jack Lloyd
      -          2013-2014 Steven Fackler
      -
      -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
      -
      -    http://www.apache.org/licenses/LICENSE-2.0
      +	http://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.
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
      Copyright 2015 Nicholas Allegra (comex).
      +~~~~
       
      -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
      -
      -    http://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.
      -
      -
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
      Licensed under the Apache License, Version 2.0
      -<LICENSE-APACHE or
      -http://www.apache.org/licenses/LICENSE-2.0> or the MIT
      -license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
      -at your option. All files in the project carrying such
      -notice may not be copied, modified, or distributed except
      -according to those terms.
       
    • -
    • -

      Apache License 2.0

      -

      Used by:

      - -
      MIT OR Apache-2.0
      -
    • BSD 3-Clause "New" or "Revised" License

      Used by:

      @@ -5688,7 +5312,7 @@

      Used by:

      BSD 3-Clause "New" or "Revised" License

      Used by:

      BSD 3-Clause License
       
      @@ -5907,7 +5531,7 @@ 

      Used by:

      MIT License

      Used by:

      Copyright (c) 2014-2021 Sean McArthur
       
      @@ -6294,7 +5918,7 @@ 

      Used by:

      MIT License

      Used by:

      Copyright (c) 2022 Tokio Contributors
       
      @@ -6327,8 +5951,7 @@ 

      Used by:

      MIT License

      Used by:

      MIT License
       
      @@ -6373,35 +5996,6 @@ 

      Used by:

      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -
      -
    • -
    • -

      MIT License

      -

      Used by:

      - -
      The MIT License (MIT)
      -
      -Copyright (c) 2014 Benjamin Sago
      -
      -Permission is hereby granted, free of charge, to any person obtaining a copy
      -of this software and associated documentation files (the "Software"), to deal
      -in the Software without restriction, including without limitation the rights
      -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      -copies of the Software, and to permit persons to whom the Software is
      -furnished to do so, subject to the following conditions:
      -
      -The above copyright notice and this permission notice shall be included in all
      -copies or substantial portions of the Software.
      -
       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      @@ -6470,37 +6064,6 @@ 

      Used by:

      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -
      -
    • -
    • -

      MIT License

      -

      Used by:

      - -
      The MIT License (MIT)
      -
      -Copyright (c) 2015 Danny Guo
      -Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
      -
      -Permission is hereby granted, free of charge, to any person obtaining a copy
      -of this software and associated documentation files (the "Software"), to deal
      -in the Software without restriction, including without limitation the rights
      -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      -copies of the Software, and to permit persons to whom the Software is
      -furnished to do so, subject to the following conditions:
      -
      -The above copyright notice and this permission notice shall be included in all
      -copies or substantial portions of the Software.
      -
      -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      -SOFTWARE.
      -
       
    • @@ -6525,35 +6088,6 @@

      Used by:

      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -
    • - -
    • -

      MIT License

      -

      Used by:

      - -
      The MIT License (MIT)
      -
      -Copyright (c) 2015-2016 Kevin B. Knapp
      -
      -Permission is hereby granted, free of charge, to any person obtaining a copy
      -of this software and associated documentation files (the "Software"), to deal
      -in the Software without restriction, including without limitation the rights
      -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      -copies of the Software, and to permit persons to whom the Software is
      -furnished to do so, subject to the following conditions:
      -
      -The above copyright notice and this permission notice shall be included in all
      -copies or substantial portions of the Software.
      -
       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      @@ -6639,3 +6173,4 @@ 

      Used by:

      + diff --git a/about.toml b/about.toml index 79ebf471..512c2cd6 100644 --- a/about.toml +++ b/about.toml @@ -4,6 +4,7 @@ accepted = [ "Zlib", "BSD-3-Clause", "ISC", + "Unicode-DFS-2016", ] targets = [ diff --git a/bootstrap/allocator.yaml b/bootstrap/allocator.yaml index f31b8126..a29be92c 100644 --- a/bootstrap/allocator.yaml +++ b/bootstrap/allocator.yaml @@ -7,7 +7,7 @@ memory_mib: 512 # How many CPUs to reserve for enclaves. cpu_count: 2 # -# Alternatively, the exact CPUs to be reserved for the enclave can be explicitely +# Alternatively, the exact CPUs to be reserved for the enclave can be explicitly # configured by using `cpu_pool` (like below), instead of `cpu_count`. # Note: cpu_count and cpu_pool conflict with each other. Only use exactly one of them. # Example of reserving CPUs 2, 3, and 6 through 9: diff --git a/docs/centos_stream_8_how_to_install_nitro_cli_from_github_sources.md b/docs/centos_stream_8_how_to_install_nitro_cli_from_github_sources.md index a3f3a292..acb83ade 100644 --- a/docs/centos_stream_8_how_to_install_nitro_cli_from_github_sources.md +++ b/docs/centos_stream_8_how_to_install_nitro_cli_from_github_sources.md @@ -181,7 +181,7 @@ memory_mib: 512 # How many CPUs to reserve for enclaves. cpu_count: 2 # -# Alternatively, the exact CPUs to be reserved for the enclave can be explicitely +# Alternatively, the exact CPUs to be reserved for the enclave can be explicitly # configured by using `cpu_pool` (like below), instead of `cpu_count`. # Note: cpu_count and cpu_pool conflict with each other. Only use exactly one of them. # Example of reserving CPUs 2, 3, and 6 through 9: diff --git a/docs/fedora_34_how_to_install_nitro_cli_from_github_sources.md b/docs/fedora_34_how_to_install_nitro_cli_from_github_sources.md index 8395078b..2d6bd26f 100644 --- a/docs/fedora_34_how_to_install_nitro_cli_from_github_sources.md +++ b/docs/fedora_34_how_to_install_nitro_cli_from_github_sources.md @@ -189,7 +189,7 @@ memory_mib: 512 # How many CPUs to reserve for enclaves. cpu_count: 2 # -# Alternatively, the exact CPUs to be reserved for the enclave can be explicitely +# Alternatively, the exact CPUs to be reserved for the enclave can be explicitly # configured by using `cpu_pool` (like below), instead of `cpu_count`. # Note: cpu_count and cpu_pool conflict with each other. Only use exactly one of them. # Example of reserving CPUs 2, 3, and 6 through 9: diff --git a/docs/rhel_8.4_how_to_install_nitro_cli_from_github_sources.md b/docs/rhel_8.4_how_to_install_nitro_cli_from_github_sources.md index 4af9c6f6..ce42e3aa 100644 --- a/docs/rhel_8.4_how_to_install_nitro_cli_from_github_sources.md +++ b/docs/rhel_8.4_how_to_install_nitro_cli_from_github_sources.md @@ -185,7 +185,7 @@ memory_mib: 512 # How many CPUs to reserve for enclaves. cpu_count: 2 # -# Alternatively, the exact CPUs to be reserved for the enclave can be explicitely +# Alternatively, the exact CPUs to be reserved for the enclave can be explicitly # configured by using `cpu_pool` (like below), instead of `cpu_count`. # Note: cpu_count and cpu_pool conflict with each other. Only use exactly one of them. # Example of reserving CPUs 2, 3, and 6 through 9: diff --git a/docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md b/docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md index f3011d2d..d8878ce6 100644 --- a/docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md +++ b/docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md @@ -188,7 +188,7 @@ memory_mib: 512 # How many CPUs to reserve for enclaves. cpu_count: 2 # -# Alternatively, the exact CPUs to be reserved for the enclave can be explicitely +# Alternatively, the exact CPUs to be reserved for the enclave can be explicitly # configured by using `cpu_pool` (like below), instead of `cpu_count`. # Note: cpu_count and cpu_pool conflict with each other. Only use exactly one of them. # Example of reserving CPUs 2, 3, and 6 through 9: diff --git a/driver-bindings/Cargo.toml b/driver-bindings/Cargo.toml index 6917cd1f..76d301cd 100644 --- a/driver-bindings/Cargo.toml +++ b/driver-bindings/Cargo.toml @@ -4,4 +4,4 @@ version = "0.1.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" description = "Rust FFI bindings to Linux Nitro Enclaves driver generated using bindgen." -rust-version = "1.58" +rust-version = "1.60" diff --git a/eif_loader/Cargo.toml b/eif_loader/Cargo.toml index e2b1db9f..a2394a62 100644 --- a/eif_loader/Cargo.toml +++ b/eif_loader/Cargo.toml @@ -3,19 +3,19 @@ name = "eif_loader" version = "0.1.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" -rust-version = "1.58" +rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] aws-nitro-enclaves-image-format = "0.2" -nix = "0.23" +nix = "0.26" libc = "0.2" -vsock = "0.2" +vsock = "0.3" [dev-dependencies] sha2 = "0.9.5" -tempfile = "3.1" +tempfile = "3.5" [lib] name = "eif_loader" diff --git a/enclave_build/Cargo.toml b/enclave_build/Cargo.toml index b2644516..037e4f03 100644 --- a/enclave_build/Cargo.toml +++ b/enclave_build/Cargo.toml @@ -3,7 +3,7 @@ name = "enclave_build" version = "0.2.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" -rust-version = "1.58" +rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -13,12 +13,12 @@ serde = { version = "1.0", features = ["derive"] } serde_yaml = "0.8" serde_json = "1.0" shiplift = "0.7" -tempfile = "3.1.0" -tokio = { version = "1.18", features = ["rt-multi-thread"] } -base64 = "0.13" +tempfile = "3.5.0" +tokio = { version = "1.27", features = ["rt-multi-thread"] } +base64 = "0.21" log = "0.4" -url = "2.1" +url = "2.3" sha2 = "0.9.5" -futures = "0.3.13" +futures = "0.3.28" aws-nitro-enclaves-image-format = "0.2" diff --git a/enclave_build/src/docker.rs b/enclave_build/src/docker.rs index cf2087f6..31436ca6 100644 --- a/enclave_build/src/docker.rs +++ b/enclave_build/src/docker.rs @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 use crate::docker::DockerError::CredentialsError; +use base64::{engine::general_purpose, Engine as _}; use futures::stream::StreamExt; use log::{debug, error, info}; use serde_json::{json, Value}; @@ -98,7 +99,7 @@ impl DockerUtil { .to_string(); let auth = auth.replace('"', ""); - let decoded = base64::decode(auth).map_err(|err| { + let decoded = general_purpose::STANDARD.decode(auth).map_err(|err| { CredentialsError(format!("Invalid Base64 encoding for auth: {err}")) })?; let decoded = std::str::from_utf8(&decoded).map_err(|err| { @@ -405,14 +406,7 @@ mod tests { /// Test extracted configuration is as expected #[test] fn test_config() { - #[cfg(target_arch = "x86_64")] - let docker = DockerUtil::new(String::from( - "667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-x86_64", - )); - #[cfg(target_arch = "aarch64")] - let docker = DockerUtil::new(String::from( - "667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-aarch64", - )); + let docker = DockerUtil::new(String::from("public.ecr.aws/aws-nitro-enclaves/hello:v1")); let (cmd_file, env_file) = docker.load().unwrap(); let mut cmd_file = File::open(cmd_file.path()).unwrap(); @@ -420,18 +414,14 @@ mod tests { let mut cmd = String::new(); cmd_file.read_to_string(&mut cmd).unwrap(); - assert_eq!( - cmd, - "/bin/sh\n\ - -c\n\ - ./vsock-sample server --port 5005\n" - ); + assert_eq!(cmd, "/bin/hello.sh\n"); let mut env = String::new(); env_file.read_to_string(&mut env).unwrap(); assert_eq!( env, - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n" + "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n\ + HELLO=Hello from the enclave side!\n" ); } } diff --git a/run_tests.sh b/run_tests.sh index 1fb8cccf..83e88dea 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -15,10 +15,6 @@ export NITRO_CLI_ARTIFACTS="${SCRIPTDIR}/build" ARCH="$(uname -m)" AWS_ACCOUNT_ID=667861386598 -ECR_REGION=us-east-1 -ECR_URL="$AWS_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com" - -aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ECR_URL # Indicate that the test suite has failed function register_test_fail() { @@ -30,8 +26,9 @@ function clean_up_and_exit() { [ "$(lsmod | grep -cw nitro_enclaves)" -eq 0 ] || rmmod nitro_enclaves || register_test_fail make clean rm -rf test_images + # Cleanup pulled images during testing - docker rmi 667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-"${ARCH}" 2> /dev/null || true + docker rmi public.ecr.aws/aws-nitro-enclaves/hello:v1 2> /dev/null || true docker rmi hello-world:latest 2> /dev/null || true rm -rf examples/"${ARCH}"/hello-entrypoint @@ -88,8 +85,8 @@ mkdir -p test_images || test_failed export HOME="/root" # Simple EIF -nitro-cli build-enclave --docker-uri 667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-"${ARCH}" \ - --output-file test_images/vsock-sample-server-"${ARCH}".eif || test_failed +nitro-cli build-enclave --docker-uri public.ecr.aws/aws-nitro-enclaves/hello:v1 \ + --output-file test_images/hello.eif || test_failed # Generate signing certificate openssl ecparam -name secp384r1 -genkey -out test_images/key.pem || test_failed @@ -98,8 +95,8 @@ openssl req -new -key test_images/key.pem -sha384 -nodes \ openssl x509 -req -days 20 -in test_images/csr.pem -out test_images/cert.pem \ -sha384 -signkey test_images/key.pem || test_failed # Signed EIF -nitro-cli build-enclave --docker-uri 667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-"${ARCH}" \ - --output-file test_images/vsock-sample-server-"${ARCH}"-signed.eif \ +nitro-cli build-enclave --docker-uri public.ecr.aws/aws-nitro-enclaves/hello:v1 \ + --output-file test_images/hello-signed.eif \ --private-key test_images/key.pem --signing-certificate test_images/cert.pem || test_failed diff --git a/samples/command_executer/Cargo.toml b/samples/command_executer/Cargo.toml index 80c6ceca..d8b01ed7 100644 --- a/samples/command_executer/Cargo.toml +++ b/samples/command_executer/Cargo.toml @@ -3,7 +3,7 @@ name = "command-executer" version = "0.1.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" -rust-version = "1.58" +rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/sources b/sources index 7935a128..a6a69552 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -536f0b4c4e9c9687bb93be980918f00e63fb9b45 nitro-cli-dependencies.tar.gz +4e96c6c0307d915245dd3f0f19ab09faf9bd0f2f nitro-cli-dependencies.tar.gz diff --git a/src/common/commands_parser.rs b/src/common/commands_parser.rs index aa60f05c..0da9a7a1 100644 --- a/src/common/commands_parser.rs +++ b/src/common/commands_parser.rs @@ -9,6 +9,7 @@ use libc::VMADDR_CID_HOST; use libc::VMADDR_CID_LOCAL; use serde::{Deserialize, Serialize}; use std::fs::File; +use std::str::FromStr; use crate::common::{NitroCliErrorEnum, NitroCliFailure, NitroCliResult, VMADDR_CID_PARENT}; use crate::get_id_by_name; @@ -290,21 +291,74 @@ fn parse_file_path(args: &ArgMatches, val_name: &str) -> NitroCliResult Ok(path.to_string()) } +#[derive(Debug)] +enum MemoryUnit { + Mebibytes, + Gibibytes, + Tebibytes, +} + +#[derive(Debug)] +struct UnknownMemoryUnitErr; + +impl MemoryUnit { + fn to_mebibytes(&self) -> u64 { + match self { + MemoryUnit::Mebibytes => 1, + MemoryUnit::Gibibytes => 1024, + MemoryUnit::Tebibytes => 1024 * 1024, + } + } +} + +impl FromStr for MemoryUnit { + type Err = UnknownMemoryUnitErr; + + fn from_str(s: &str) -> Result { + match s { + "M" | "m" | "" => Ok(MemoryUnit::Mebibytes), + "G" | "g" => Ok(MemoryUnit::Gibibytes), + "T" | "t" => Ok(MemoryUnit::Tebibytes), + _ => Err(UnknownMemoryUnitErr), + } + } +} + /// Parse the requested amount of enclave memory from the command-line arguments. -fn parse_memory(args: &ArgMatches) -> NitroCliResult { +/// It can be just a number like 123, or it can end in a size indicator like 100M or 10G. +/// If the size indicator is missing, it defaults to M. +/// If the size indicator is not M, G or T, it returns an error. +/// +/// # Arguments +/// * `args` - The command-line arguments. +pub fn parse_memory(args: &ArgMatches) -> NitroCliResult { let memory = args.value_of("memory").ok_or_else(|| { new_nitro_cli_failure!( "`memory` argument not found", NitroCliErrorEnum::MissingArgument ) })?; - memory.parse().map_err(|_| { + + let (num_str, size_str) = match memory.find(|c: char| !c.is_numeric()) { + Some(index) => memory.split_at(index), + None => (memory, ""), + }; + let num = num_str.parse::().map_err(|_| { + new_nitro_cli_failure!( + "`memory` argument does not contain a number", + NitroCliErrorEnum::InvalidArgument + ) + .add_info(vec!["memory", memory]) + })?; + + let unit = size_str.parse::().map_err(|_| { new_nitro_cli_failure!( - "`memory` is not a number", + "`memory` argument does not contain a valid size indicator", NitroCliErrorEnum::InvalidArgument ) .add_info(vec!["memory", memory]) - }) + })?; + Ok(num * unit.to_mebibytes()) } /// Parse the Docker tag from the command-line arguments. @@ -565,6 +619,102 @@ mod tests { let err_str = construct_error_message(&err_info); assert!(err_str.contains("Invalid argument provided")) } + + let app = create_app!(); + let args = vec![ + "nitro-cli", + "run-enclave", + "--memory", + "256", + "--cpu-count", + "2", + "--eif-path", + "non_existing_eif.eif", + ]; + + let matches = app.get_matches_from_safe(args); + assert!(matches.is_ok()); + + let result = parse_memory( + matches + .as_ref() + .unwrap() + .subcommand_matches("run-enclave") + .unwrap(), + ); + assert_eq!(result, Ok(256)); + + let app = create_app!(); + let args = vec![ + "nitro-cli", + "run-enclave", + "--memory", + "100M", + "--cpu-count", + "2", + "--eif-path", + "non_existing_eif.eif", + ]; + + let matches = app.get_matches_from_safe(args); + assert!(matches.is_ok()); + + let result = parse_memory( + matches + .as_ref() + .unwrap() + .subcommand_matches("run-enclave") + .unwrap(), + ); + assert_eq!(result, Ok(100)); + + let app = create_app!(); + let args = vec![ + "nitro-cli", + "run-enclave", + "--memory", + "10G", + "--cpu-count", + "2", + "--eif-path", + "non_existing_eif.eif", + ]; + + let matches = app.get_matches_from_safe(args); + assert!(matches.is_ok()); + + let result = parse_memory( + matches + .as_ref() + .unwrap() + .subcommand_matches("run-enclave") + .unwrap(), + ); + assert_eq!(result, Ok(10_240)); + + let app = create_app!(); + let args = vec![ + "nitro-cli", + "run-enclave", + "--memory", + "2T", + "--cpu-count", + "2", + "--eif-path", + "non_existing_eif.eif", + ]; + + let matches = app.get_matches_from_safe(args); + assert!(matches.is_ok()); + + let result = parse_memory( + matches + .as_ref() + .unwrap() + .subcommand_matches("run-enclave") + .unwrap(), + ); + assert_eq!(result, Ok(2 * 1024 * 1024)); } #[test] diff --git a/src/common/document_errors.rs b/src/common/document_errors.rs index fe9548f6..3244a741 100644 --- a/src/common/document_errors.rs +++ b/src/common/document_errors.rs @@ -217,7 +217,7 @@ pub fn get_detailed_info(error_code_str: String, additional_info: &[String]) -> } else { ret.push_str( format!( - "Insufficient memory requested. User provided `{}` is {} MB, and memory should be greated than 0 MB.", + "Insufficient memory requested. User provided `{}` is {} MB, and memory should be greater than 0 MB.", additional_info.get(0).unwrap_or(&info_placeholder), additional_info.get(1).unwrap_or(&info_placeholder) ).as_str(), @@ -227,7 +227,7 @@ pub fn get_detailed_info(error_code_str: String, additional_info: &[String]) -> "E27" => { ret.push_str( format!( - "Insufficient memory available. User provided `{}` is {} MB, which is more than the available hugepage memory.\nYou can increase the available memory by editing the `memory_mib` value from '/etc/nitro_enclaves/allocator.yaml' and then enable the nitro-enclaves-allocator.service.", + "Insufficient memory available. User provided `{}` is {} MB, which is more than the available hugepage memory.\nYou can increase the available memory by editing the `memory_mib` value from '/etc/nitro_enclaves/allocator.yaml' and then restart the nitro-enclaves-allocator.service.", additional_info.get(0).unwrap_or(&info_placeholder), additional_info.get(1).unwrap_or(&info_placeholder) ).as_str(), diff --git a/src/common/logger.rs b/src/common/logger.rs index 2f55d184..8fe7f6c1 100644 --- a/src/common/logger.rs +++ b/src/common/logger.rs @@ -6,7 +6,7 @@ use chrono::offset::{Local, Utc}; use chrono::DateTime; use flexi_logger::writers::LogWriter; -use flexi_logger::{DeferredNow, LogTarget, Record}; +use flexi_logger::{DeferredNow, Record}; use nix::unistd::Uid; use std::env; use std::fs::{File, OpenOptions, Permissions}; @@ -89,7 +89,7 @@ impl EnclaveProcLogWriter { /// Generate a single message string. fn create_msg(&self, now: &DateTime, record: &Record) -> NitroCliResult { // UTC timestamp according to RFC 2822 - let timestamp = DateTime::::from_utc(now.naive_utc(), Utc) + let timestamp = DateTime::::from_naive_utc_and_offset(now.naive_utc(), Utc) .to_rfc3339_opts(chrono::SecondsFormat::Millis, true); let logger_id = self.logger_id.lock().map_err(|e| { new_nitro_cli_failure!( @@ -225,8 +225,14 @@ pub fn init_logger() -> NitroCliResult { let log_writer = EnclaveProcLogWriter::new()?; // Initialize logging with the new log writer. - flexi_logger::Logger::with_env_or_str(DEFAULT_LOG_LEVEL) - .log_target(LogTarget::Writer(Box::new(log_writer.clone()))) + flexi_logger::Logger::try_with_env_or_str(DEFAULT_LOG_LEVEL) + .map_err(|e| { + new_nitro_cli_failure!( + &format!("Failed to initialize enclave process logger: {:?}", e), + NitroCliErrorEnum::LoggerError + ) + })? + .log_to_writer(Box::new(log_writer.clone())) .start() .map_err(|e| { new_nitro_cli_failure!( diff --git a/src/common/mod.rs b/src/common/mod.rs index 0ddbc84c..90c63ce5 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -225,7 +225,7 @@ pub enum EnclaveProcessReply { } /// Struct that is passed along the backtrace and accumulates error messages. -#[derive(Debug, Default)] +#[derive(Debug, Default, PartialEq)] pub struct NitroCliFailure { /// Main action which was attempted and failed. pub action: String, diff --git a/src/enclave_proc/commands.rs b/src/enclave_proc/commands.rs index 4ee0c05d..30c23b41 100644 --- a/src/enclave_proc/commands.rs +++ b/src/enclave_proc/commands.rs @@ -34,7 +34,7 @@ pub struct DescribeThreadResult { /// Thread handle from parallel computing of PCRs and fetching of metadata pub type DescribeThread = Option>>; -/// Information retuned by run_enclave function. +/// Information returned by run_enclave function. pub struct RunEnclaveResult { /// Manager structure describing the enclave. pub enclave_manager: EnclaveManager, diff --git a/src/enclave_proc/resource_manager.rs b/src/enclave_proc/resource_manager.rs index ee50740e..5454d134 100644 --- a/src/enclave_proc/resource_manager.rs +++ b/src/enclave_proc/resource_manager.rs @@ -20,8 +20,7 @@ use std::os::unix::io::{AsRawFd, RawFd}; use std::str; use std::sync::{Arc, Mutex}; use std::time::Duration; -use vsock::SockAddr; -use vsock::VsockListener; +use vsock::{VsockAddr, VsockListener}; use crate::common::json_output::EnclaveBuildInfo; use crate::common::{construct_error_message, notify_error}; @@ -387,7 +386,7 @@ impl ResourceAllocator { // larger-page allocations (Ex: if we have 1 x 1 GB page and 1 x 2 MB page, but // we want to allocate only 512 MB, the above algorithm will have allocated only // the 2 MB page, since the 1 GB page was too large for what was needed; we now - // need to allocate in increasing order of page size in order to reduce westage). + // need to allocate in increasing order of page size in order to reduce wastage). if needed_mem > 0 { for (_, page_info) in HUGE_PAGE_MAP.iter().rev().enumerate() { @@ -403,7 +402,7 @@ impl ResourceAllocator { } } - // If we still have memory to alocate, it means we have insufficient resources. + // If we still have memory to allocate, it means we have insufficient resources. if needed_mem > 0 { return Err(new_nitro_cli_failure!( &format!( @@ -565,7 +564,7 @@ impl EnclaveHandle { self.init_cpus() .map_err(|e| e.add_subaction("vCPUs initialization issue".to_string()))?; - let sockaddr = SockAddr::new_vsock(VMADDR_CID_PARENT, ENCLAVE_READY_VSOCK_PORT); + let sockaddr = VsockAddr::new(VMADDR_CID_PARENT, ENCLAVE_READY_VSOCK_PORT); let listener = VsockListener::bind(&sockaddr).map_err(|_| { new_nitro_cli_failure!( "Enclave boot heartbeat vsock connection - vsock bind error", @@ -757,7 +756,7 @@ impl EnclaveHandle { .map_err(|e| e.add_subaction("Failed to release used memory".to_string()))?; info!("Enclave terminated."); - // Mark enclave as termiated. + // Mark enclave as terminated. self.clear(); } @@ -1145,7 +1144,7 @@ fn write_eif_to_regions( })?; if written_plus_region_size <= image_write_offset { - // All bytes need to be skiped to get to the image write offset. + // All bytes need to be skipped to get to the image write offset. } else { let region_offset = image_write_offset.saturating_sub(total_written); let file_offset = total_written.saturating_sub(image_write_offset); diff --git a/src/enclave_proc_comm.rs b/src/enclave_proc_comm.rs index a098614f..7fd12e7c 100644 --- a/src/enclave_proc_comm.rs +++ b/src/enclave_proc_comm.rs @@ -190,7 +190,7 @@ where // Get the number of expected replies. let mut num_replies_expected = comms.len() - num_errors; - let mut events = vec![EpollEvent::empty(); 1]; + let mut events = [EpollEvent::empty(); 1]; while num_replies_expected > 0 { let num_events = loop { diff --git a/src/lib.rs b/src/lib.rs index d46686c7..169e64b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -609,7 +609,10 @@ macro_rules! create_app { .arg( Arg::with_name("memory") .long("memory") - .help("Memory to allocate for the enclave in MB") + .help( + "Memory to allocate for the enclave in MB. Depending on the available \ + pages, more might be allocated." + ) .required_unless("config") .takes_value(true) .conflicts_with("config"), @@ -637,7 +640,7 @@ macro_rules! create_app { "Starts enclave in debug-mode. This makes the console of the enclave \ available over vsock at CID: VMADDR_CID_HYPERVISOR (0), port: \ enclave_cid + 10000. \n The stream could be accessed with the console \ - sub-command" , + sub-command" ) .conflicts_with("config"), ) diff --git a/src/utils.rs b/src/utils.rs index dd17ebf4..bc368f5c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -7,7 +7,7 @@ use libc::{c_void, close}; use nix::poll::poll; use nix::poll::{PollFd, PollFlags}; use nix::sys::socket::{connect, socket}; -use nix::sys::socket::{AddressFamily, SockAddr, SockFlag, SockType}; +use nix::sys::socket::{AddressFamily, SockFlag, SockType, VsockAddr}; use nix::sys::time::{TimeVal, TimeValLike}; use nix::unistd::read; use std::io::Write; @@ -73,7 +73,7 @@ impl Console { ) })?; - let sockaddr = SockAddr::new_vsock(cid, port); + let sockaddr = VsockAddr::new(cid, port); vsock_set_connect_timeout(socket_fd, CONSOLE_CONNECT_TIMEOUT).map_err(|err| { err.add_subaction("Failed to set console connect timeout".to_string()) @@ -109,7 +109,7 @@ impl Console { err.add_subaction("Failed to set console connect timeout".to_string()) })?; - let sockaddr = SockAddr::new_vsock(cid, port); + let sockaddr = VsockAddr::new(cid, port); let result = connect(socket_fd, &sockaddr); match result { diff --git a/tests/integration/helpers.py b/tests/integration/helpers.py index 4e5efaf3..f80e0ea4 100755 --- a/tests/integration/helpers.py +++ b/tests/integration/helpers.py @@ -15,8 +15,8 @@ TEST_IMAGES = "test_images/" ARCH = subprocess.run(["uname", "-m"], stdout=PIPE, stderr=PIPE, check=False).stdout.decode('UTF-8').rstrip("\n") -SAMPLE_EIF = "vsock-sample-server-" + ARCH + ".eif" -SIGNED_EIF = "vsock-sample-server-" + ARCH + "-signed.eif" +SAMPLE_EIF = "hello.eif" +SIGNED_EIF = "hello-signed.eif" SIGN_CERT = "cert.pem" diff --git a/tests/tests.rs b/tests/tests.rs index 5a797039..2c129a1d 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -34,12 +34,28 @@ mod tests { use openssl::x509::{X509Name, X509}; // Remote Docker image + const SAMPLE_DOCKER: &str = "public.ecr.aws/aws-nitro-enclaves/hello:v1"; + #[cfg(target_arch = "x86_64")] - const SAMPLE_DOCKER: &str = - "667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-x86_64"; + mod sample_docker_pcrs { + /// PCR0 + pub const IMAGE_PCR: &str = "7f3287dd1c4dbc49513abfaabc7f6afe79ab8269743c0c4ee55bb9e92d4f0a36f0cae7c0356d0bfec78b59b4d20c689c"; + /// PCR1 + pub const KERNEL_PCR: &str = "bcdf05fefccaa8e55bf2c8d6dee9e79bbff31e34bf28a99aa19e6b29c37ee80b214a414b7607236edf26fcb78654e63f"; + /// PCR2 + pub const APP_PCR: &str = "dd61366a5424eea46f60c4e9d59e6c645a46420ccf962550ee1f3c109d230f88ec23667617aeaac425a1f50fe8e384d7"; + } + #[cfg(target_arch = "aarch64")] - const SAMPLE_DOCKER: &str = - "667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-aarch64"; + mod sample_docker_pcrs { + /// PCR0 + pub const IMAGE_PCR: &str = "b32a774b09fff4324a6405dacf3f5aa462a75e554e3a563ee64708abd585456bb480fdf70b2e2c2ab9ec205717bc690e"; + /// PCR1 + pub const KERNEL_PCR: &str = "5d3938eb05288e20a981038b1861062ff4174884968a39aee5982b312894e60561883576cc7381d1a7d05b809936bd16"; + /// PCR2 + pub const APP_PCR: &str = "9397173aa14e47fe087e8aeb63928a233db048e290830de6ce2041f4580f83b599c48432467601bed8a4883e9d94ff10"; + } + // Local Docker image const COMMAND_EXECUTER_DOCKER: &str = "command_executer:eif"; @@ -50,8 +66,7 @@ mod tests { fn setup_env() { if std::env::var("NITRO_CLI_BLOBS").is_err() { - let home = std::env::var("HOME").unwrap(); - std::env::set_var("NITRO_CLI_BLOBS", format!("{}/.nitro_cli/prebuilt", home)); + std::env::set_var("NITRO_CLI_BLOBS", "/usr/share/nitro_enclaves/blobs"); } } @@ -102,35 +117,17 @@ mod tests { ) .expect("Docker build failed") .1; - #[cfg(target_arch = "x86_64")] assert_eq!( measurements.get("PCR0").unwrap(), - "c22753ee2f1733872a86fbeb8656625f126dc57fe55609155678d15a71dc9543583fc129c051cef12045adaee8795803" - ); - #[cfg(target_arch = "aarch64")] - assert_eq!( - measurements.get("PCR0").unwrap(), - "adf436d453f5dc7f805ca4c867ea3d639955838d7649c293ae8c3feb9c769c3391a11c502ef304bc2968bbd3d7a4f25e" - ); - #[cfg(target_arch = "x86_64")] - assert_eq!( - measurements.get("PCR1").unwrap(), - "bcdf05fefccaa8e55bf2c8d6dee9e79bbff31e34bf28a99aa19e6b29c37ee80b214a414b7607236edf26fcb78654e63f" + sample_docker_pcrs::IMAGE_PCR ); - #[cfg(target_arch = "aarch64")] assert_eq!( measurements.get("PCR1").unwrap(), - "5d3938eb05288e20a981038b1861062ff4174884968a39aee5982b312894e60561883576cc7381d1a7d05b809936bd16" + sample_docker_pcrs::KERNEL_PCR ); - #[cfg(target_arch = "x86_64")] assert_eq!( measurements.get("PCR2").unwrap(), - "10ffd6773d365539696fa3520c28312cf657152fc3f89538d02af5e8b579e964a9f9a5c763470a122763f4fd0a1dd2d7" - ); - #[cfg(target_arch = "aarch64")] - assert_eq!( - measurements.get("PCR2").unwrap(), - "28737c9aa5d964c0daaddd1460b7b50c46788f1c037aa6317d66b3eb95823840c0ae774e6ee744deb8293265d97bbd1f" + sample_docker_pcrs::APP_PCR ); } @@ -266,35 +263,18 @@ mod tests { ) .expect("Docker build failed") .1; - #[cfg(target_arch = "x86_64")] - assert_eq!( - measurements.get("PCR0").unwrap(), - "c22753ee2f1733872a86fbeb8656625f126dc57fe55609155678d15a71dc9543583fc129c051cef12045adaee8795803" - ); - #[cfg(target_arch = "aarch64")] + assert_eq!( measurements.get("PCR0").unwrap(), - "adf436d453f5dc7f805ca4c867ea3d639955838d7649c293ae8c3feb9c769c3391a11c502ef304bc2968bbd3d7a4f25e" + sample_docker_pcrs::IMAGE_PCR ); - #[cfg(target_arch = "x86_64")] assert_eq!( measurements.get("PCR1").unwrap(), - "bcdf05fefccaa8e55bf2c8d6dee9e79bbff31e34bf28a99aa19e6b29c37ee80b214a414b7607236edf26fcb78654e63f" - ); - #[cfg(target_arch = "aarch64")] - assert_eq!( - measurements.get("PCR1").unwrap(), - "5d3938eb05288e20a981038b1861062ff4174884968a39aee5982b312894e60561883576cc7381d1a7d05b809936bd16" - ); - #[cfg(target_arch = "x86_64")] - assert_eq!( - measurements.get("PCR2").unwrap(), - "10ffd6773d365539696fa3520c28312cf657152fc3f89538d02af5e8b579e964a9f9a5c763470a122763f4fd0a1dd2d7" + sample_docker_pcrs::KERNEL_PCR ); - #[cfg(target_arch = "aarch64")] assert_eq!( measurements.get("PCR2").unwrap(), - "28737c9aa5d964c0daaddd1460b7b50c46788f1c037aa6317d66b3eb95823840c0ae774e6ee744deb8293265d97bbd1f" + sample_docker_pcrs::APP_PCR ); } @@ -744,38 +724,19 @@ mod tests { get_enclave_describe_info(&enclave_manager, false).unwrap(); let build_info = enclave_manager.get_measurements().unwrap(); - let enclave_name = enclave_manager.enclave_name.clone(); + let measurements = build_info.measurements; - assert_eq!(enclave_name, "testName"); - #[cfg(target_arch = "x86_64")] assert_eq!( - build_info.measurements.get(&"PCR0".to_string()).unwrap(), - "c22753ee2f1733872a86fbeb8656625f126dc57fe55609155678d15a71dc9543583fc129c051cef12045adaee8795803" - ); - #[cfg(target_arch = "aarch64")] - assert_eq!( - build_info.measurements.get(&"PCR0".to_string()).unwrap(), - "adf436d453f5dc7f805ca4c867ea3d639955838d7649c293ae8c3feb9c769c3391a11c502ef304bc2968bbd3d7a4f25e" - ); - #[cfg(target_arch = "x86_64")] - assert_eq!( - build_info.measurements.get(&"PCR1".to_string()).unwrap(), - "bcdf05fefccaa8e55bf2c8d6dee9e79bbff31e34bf28a99aa19e6b29c37ee80b214a414b7607236edf26fcb78654e63f" - ); - #[cfg(target_arch = "aarch64")] - assert_eq!( - build_info.measurements.get(&"PCR1".to_string()).unwrap(), - "5d3938eb05288e20a981038b1861062ff4174884968a39aee5982b312894e60561883576cc7381d1a7d05b809936bd16" + measurements.get("PCR0").unwrap(), + sample_docker_pcrs::IMAGE_PCR ); - #[cfg(target_arch = "x86_64")] assert_eq!( - build_info.measurements.get(&"PCR2".to_string()).unwrap(), - "10ffd6773d365539696fa3520c28312cf657152fc3f89538d02af5e8b579e964a9f9a5c763470a122763f4fd0a1dd2d7" + measurements.get("PCR1").unwrap(), + sample_docker_pcrs::KERNEL_PCR ); - #[cfg(target_arch = "aarch64")] assert_eq!( - build_info.measurements.get(&"PCR2".to_string()).unwrap(), - "28737c9aa5d964c0daaddd1460b7b50c46788f1c037aa6317d66b3eb95823840c0ae774e6ee744deb8293265d97bbd1f" + measurements.get("PCR2").unwrap(), + sample_docker_pcrs::APP_PCR ); let _enclave_id = generate_enclave_id(0).expect("Describe enclaves failed"); @@ -862,17 +823,7 @@ mod tests { metadata.build_info.build_tool_version, env!("CARGO_PKG_VERSION") ); - #[cfg(target_arch = "x86_64")] - assert_eq!( - *metadata - .docker_info - .get("RepoTags") - .unwrap() - .get(0) - .unwrap(), - json!("667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-x86_64") - ); - #[cfg(target_arch = "aarch64")] + assert_eq!( *metadata .docker_info @@ -880,8 +831,9 @@ mod tests { .unwrap() .get(0) .unwrap(), - json!("667861386598.dkr.ecr.us-east-1.amazonaws.com/enclaves-samples:vsock-sample-server-aarch64") + json!("public.ecr.aws/aws-nitro-enclaves/hello:v1") ); + assert_eq!( *metadata.custom_info.get("AppVersion").unwrap(), json!("3.2") diff --git a/tools/Dockerfile b/tools/Dockerfile index d47b6061..01498fb3 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -30,7 +30,7 @@ RUN cd /tmp/openssl_src/openssl-${OPENSSL_VERSION} && \ make install_sw # Setup the right rust ver -ENV RUST_VERSION=1.58.1 +ENV RUST_VERSION=1.60.0 RUN source $HOME/.cargo/env && \ ARCH=$(uname -m) && \ rustup toolchain install ${RUST_VERSION}-${ARCH}-unknown-linux-gnu && \ diff --git a/vsock_proxy/Cargo.lock b/vsock_proxy/Cargo.lock deleted file mode 100644 index 78dc37b0..00000000 --- a/vsock_proxy/Cargo.lock +++ /dev/null @@ -1,496 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "aho-corasick" -version = "0.7.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" -dependencies = [ - "memchr", -] - -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" -dependencies = [ - "winapi", -] - -[[package]] -name = "atty" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1803c647a3ec87095e7ae7acfca019e98de5ec9a7d01343f611cf3152ed71a90" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "bitflags" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" - -[[package]] -name = "c2-chacha" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "214238caa1bf3a496ec3392968969cab8549f96ff30652c9e56885329315f6bb" -dependencies = [ - "ppv-lite86", -] - -[[package]] -name = "cc" -version = "1.0.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa87058dce70a3ff5621797f1506cb837edd02ac4c0ae642b4542dce802908b8" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "clap" -version = "2.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9" -dependencies = [ - "ansi_term", - "atty", - "bitflags", - "strsim", - "textwrap", - "unicode-width", - "vec_map", -] - -[[package]] -name = "dns-lookup" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13988670860b076248c74e1b54444efc4f1dec70c8bb25da4b7c0024396b72bf" -dependencies = [ - "libc", - "socket2", - "winapi", -] - -[[package]] -name = "env_logger" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "fastrand" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" -dependencies = [ - "instant", -] - -[[package]] -name = "getrandom" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7db7ca94ed4cd01190ceee0d8a8052f08a247aa1b469a7f68c6a3b71afcf407" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "wasi", -] - -[[package]] -name = "hermit-abi" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307c3c9f937f38e3534b1d6447ecf090cafcc9744e4a6360e8b037b2cf5af120" -dependencies = [ - "libc", -] - -[[package]] -name = "humantime" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -dependencies = [ - "quick-error", -] - -[[package]] -name = "idna" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "instant" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "libc" -version = "0.2.126" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" - -[[package]] -name = "linked-hash-map" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" - -[[package]] -name = "log" -version = "0.4.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "matches" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" - -[[package]] -name = "maybe-uninit" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" - -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - -[[package]] -name = "nix" -version = "0.23.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6" -dependencies = [ - "bitflags", - "cc", - "cfg-if 1.0.0", - "libc", - "memoffset", -] - -[[package]] -name = "num_cpus" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76dac5ed2a876980778b8b85f75a71b6cbf0db0b1232ee12f826bccb00d09d72" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "ppv-lite86" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74490b50b9fbe561ac330df47c08f3f33073d2d00c150f719147d7c54522fa1b" - -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - -[[package]] -name = "rand" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae1b169243eaf61759b8475a998f0a385e42042370f3a7dbaf35246eacc8412" -dependencies = [ - "getrandom", - "libc", - "rand_chacha", - "rand_core", - "rand_hc", -] - -[[package]] -name = "rand_chacha" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a2a90da8c7523f554344f921aa97283eadf6ac484a6d2a7d0212fa7f8d6853" -dependencies = [ - "c2-chacha", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core", -] - -[[package]] -name = "redox_syscall" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" -dependencies = [ - "bitflags", -] - -[[package]] -name = "regex" -version = "1.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83f127d94bdbcda4c8cc2e50f6f84f4b611f69c902699ca385a39c3a75f9ff1" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.6.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64" - -[[package]] -name = "remove_dir_all" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi", -] - -[[package]] -name = "smallvec" -version = "0.6.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0" -dependencies = [ - "maybe-uninit", -] - -[[package]] -name = "socket2" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "winapi", -] - -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - -[[package]] -name = "tempfile" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" -dependencies = [ - "cfg-if 1.0.0", - "fastrand", - "libc", - "redox_syscall", - "remove_dir_all", - "winapi", -] - -[[package]] -name = "termcolor" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - -[[package]] -name = "threadpool" -version = "1.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2f0c90a5f3459330ac8bc0d2f879c693bb7a2f59689c1083fc4ef83834da865" -dependencies = [ - "num_cpus", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -dependencies = [ - "matches", -] - -[[package]] -name = "unicode-normalization" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09c8070a9942f5e7cfccd93f490fdebd230ee3c3c9f107cb25bad5351ef671cf" -dependencies = [ - "smallvec", -] - -[[package]] -name = "unicode-width" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7007dbd421b92cc6e28410fe7362e2e0a2503394908f417b68ec8d1c364c4e20" - -[[package]] -name = "vec_map" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" - -[[package]] -name = "vsock" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e32675ee2b3ce5df274c0ab52d19b28789632406277ca26bffee79a8e27dc133" -dependencies = [ - "libc", - "nix", -] - -[[package]] -name = "vsock-proxy" -version = "0.1.0" -dependencies = [ - "clap", - "dns-lookup", - "env_logger", - "idna", - "log", - "nix", - "rand", - "tempfile", - "threadpool", - "vsock", - "yaml-rust", -] - -[[package]] -name = "wasi" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b89c3ce4ce14bdc6fb6beaf9ec7928ca331de5df7e5ea278375642a2f478570d" - -[[package]] -name = "winapi" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "yaml-rust" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" -dependencies = [ - "linked-hash-map", -] diff --git a/vsock_proxy/Cargo.toml b/vsock_proxy/Cargo.toml index 34d5755f..e180b09c 100644 --- a/vsock_proxy/Cargo.toml +++ b/vsock_proxy/Cargo.toml @@ -3,21 +3,21 @@ name = "vsock-proxy" version = "0.1.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" -rust-version = "1.58" +rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] clap = "3.2" dns-lookup = "1.0.1" -env_logger = "0.7" -idna = "0.2.0" +env_logger = "0.10" +idna = "0.3.0" log = "0.4" -nix = "0.23" +nix = "0.26" yaml-rust = "0.4.3" threadpool = "1.7.1" -vsock = "0.2" +vsock = "0.3" [dev-dependencies] -rand = "0.7.0" -tempfile = "3.1.0" +rand = "0.8.5" +tempfile = "3.5.0" diff --git a/vsock_proxy/src/starter.rs b/vsock_proxy/src/starter.rs index c23444c2..7684425e 100644 --- a/vsock_proxy/src/starter.rs +++ b/vsock_proxy/src/starter.rs @@ -15,8 +15,7 @@ use std::io::{Read, Write}; use std::net::{IpAddr, SocketAddr, TcpStream}; use std::os::unix::io::AsRawFd; use threadpool::ThreadPool; -use vsock::SockAddr; -use vsock::VsockListener; +use vsock::{VsockAddr, VsockListener}; use yaml_rust::YamlLoader; const BUFF_SIZE: usize = 8192; @@ -162,7 +161,7 @@ impl Proxy { /// Creates a listening socket /// Returns the file descriptor for it or the appropriate error pub fn sock_listen(&self) -> VsockProxyResult { - let sockaddr = SockAddr::new_vsock(VSOCK_PROXY_CID, self.local_port); + let sockaddr = VsockAddr::new(VSOCK_PROXY_CID, self.local_port); let listener = VsockListener::bind(&sockaddr) .map_err(|_| format!("Could not bind to {:?}", sockaddr))?; info!("Bound to {:?}", sockaddr); diff --git a/vsock_proxy/tests/connection_test.rs b/vsock_proxy/tests/connection_test.rs index 1e4fe19f..000a3ca3 100644 --- a/vsock_proxy/tests/connection_test.rs +++ b/vsock_proxy/tests/connection_test.rs @@ -9,12 +9,12 @@ use std::str; use std::sync::mpsc; use std::thread; use tempfile::NamedTempFile; -use vsock::{SockAddr, VsockStream}; +use vsock::{VsockAddr, VsockStream}; use vsock_proxy::starter::Proxy; fn vsock_connect(port: u32) -> VsockStream { - let sockaddr = SockAddr::new_vsock(vsock_proxy::starter::VSOCK_PROXY_CID, port); + let sockaddr = VsockAddr::new(vsock_proxy::starter::VSOCK_PROXY_CID, port); VsockStream::connect(&sockaddr).expect("Could not connect") }