├── .dockerignore ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── build.sh └── tests ├── bashtest.sh ├── test-func-with-hooks ├── .gitignore ├── .lambda-rust │ ├── build │ ├── install │ └── package ├── Cargo.lock ├── Cargo.toml ├── expected-output.json ├── src │ └── main.rs └── test-event.json ├── test-func ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── expected-output.json ├── src │ └── main.rs └── test-event.json ├── test-multi-func ├── Cargo.lock ├── Cargo.toml ├── expected-output.json ├── foo │ ├── Cargo.toml │ └── src │ │ └── main.rs └── test-event.json └── test.sh /.dockerignore: -------------------------------------------------------------------------------- 1 | tests 2 | .git -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Main 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | tags: 8 | - 'v**' 9 | pull_request: 10 | branches: 11 | - master 12 | 13 | jobs: 14 | test: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v1 18 | - name: Test 19 | run: make test 20 | publish-docs: 21 | needs: [test] 22 | runs-on: ubuntu-latest 23 | steps: 24 | - uses: actions/checkout@v1 25 | - name: Update Docker hub metadata 26 | uses: docker://mpepping/docker-hub-metadata-github-action 27 | env: 28 | IMAGE: ${{ github.repository }} 29 | DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} 30 | DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} 31 | continue-on-error: true 32 | publish: 33 | needs: [test] 34 | runs-on: ubuntu-latest 35 | steps: 36 | - uses: actions/checkout@v1 37 | - name: Build 38 | shell: bash 39 | run: make build 40 | - name: Publish 41 | if: startsWith(github.ref, 'refs/tags/') 42 | shell: bash 43 | run: | 44 | echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin 45 | make publish -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | tests/test-*/test-out.log 2 | target 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | 3 | # only build pushes to master 4 | # prs are build separately 5 | # https://docs.travis-ci.com/user/pull-requests/#how-pull-requests-are-built 6 | branches: 7 | only: 8 | - master 9 | 10 | services: 11 | - docker 12 | 13 | script: 14 | make test -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 0.4.0-rust-1.45.2 2 | 3 | * **Breaking change** in avoid mixed user permissions when volume mounting cargo cache directories. This docker images now configures a cargo installation to `/cargo` directory rather than `/home/root/.cargo`. You'll also want to ensure 4 | docker runs use a docker user that maps to your host machine's user id and group. 5 | 6 | ```diff 7 | $ docker run --rm \ 8 | + -u $(id -u):$(id -g) \ 9 | -v ${PWD}:/code \ 10 | + -v ${HOME}/.cargo/registry:/cargo/registry \ 11 | + -v ${HOME}/.cargo/git:/cargo/git \ 12 | softprops/lambda-rust 13 | ``` 14 | 15 | * Upgrade to Rust [`1.45.2`](https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html) 16 | 17 | * Upgrade to [amazon linux 2](https://aws.amazon.com/blogs/compute/migrating-aws-lambda-functions-to-al2/) base 18 | 19 | # 0.3.0-rust-1.45.0 20 | 21 | * Upgrade to Rust [`1.45.0`](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html) 22 | 23 | # 0.3.0-rust-1.44.1 24 | 25 | * Put unzipped `boostrap` and `bootstrap.debug` files under `target/lambda/${PROFILE}/output/${BIN}` dir 26 | to allow for using these artifacts without an intermediate `.zip` file creation step. 27 | * Introduce `$PACKAGE` env var. Setting `-e PACKAGE=false` prevents `.zip` archive from 28 | being created and `package` hook from running. 29 | 30 | # 0.2.7-rust-1.44.1 31 | 32 | * Upgrade to Rust [`1.44.1`](https://blog.rust-lang.org/2020/06/18/Rust.1.44.1.html) 33 | 34 | # 0.2.7-rust-1.44.0 35 | 36 | * Upgrade to Rust [`1.44.0`](https://blog.rust-lang.org/2020/06/04/Rust-1.44.0.html) 37 | 38 | # 0.2.7-rust-1.43.1 39 | 40 | * Upgrade to Rust [`1.43.1`](https://blog.rust-lang.org/2020/05/07/Rust.1.43.1.html) 41 | # 0.2.7-rust-1.43.0 42 | 43 | * Upgrade to Rust [`1.43.0`](https://blog.rust-lang.org/2020/04/23/Rust-1.43.0.html) 44 | 45 | # 0.2.7-rust-1.42.0 46 | 47 | * Invoke user provided hooks for customized installation, building, and packaging needs [#59](https://github.com/softprops/lambda-rust/pull/59) 48 | 49 | # 0.2.6-rust-1.42.0 50 | 51 | * Upgrade to Rust [`1.42.0`](https://blog.rust-lang.org/2020/03/12/Rust-1.42.html) 52 | 53 | # 0.2.6-rust-1.41.0 54 | 55 | * Upgrade to Rust [`1.41.0`](https://blog.rust-lang.org/2020/01/30/Rust-1.41.0.html) 56 | 57 | # 0.2.6-rust-1.40.0 58 | 59 | * Upgrade to Rust [`1.40.0`](https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html) 60 | 61 | # 0.2.6-rust-1.39.0 62 | 63 | * Upgrade to Rust [`1.39.0`](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html) 64 | 65 | # 0.2.6-rust-1.38.0 66 | 67 | * Debug info in `release` profiles is now only included when a `DEBUGINFO` env variable is provided. This perserves previous behavior and makes enabling this an opt-in feature for `release` binaries 68 | 69 | # 0.2.5-rust-1.38.0 70 | 71 | * reduced total size of docker image by **~277MB** leveraging new [rustup `minimal` profile](https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html) 72 | 73 | # 0.2.4-rust-1.38.0 74 | 75 | * Fixed regression from previous release cargo workspaces we failing to resolve binary names 76 | * `dev` profile builds are no longer run though `strip` which increases their binary size but retain their debug information 77 | * `release` profile builds (the default) still have debug information stripped but produce a file named `{your-binary-name}.debug` which final release binary contains a debug link to. 78 | 79 | # 0.2.3-rust-1.38.0 80 | 81 | * Upgrade to Rust [`1.38.0`](https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html) 82 | * You can generate debug artifacts with adding `-e PROFILE=dev` to your docker runs 83 | 84 | # 0.2.2-rust-1.37.0 85 | 86 | * Improve logic for selecting binaries to include in deployment zip, especially on Windows 87 | 88 | # 0.2.1-rust-1.37.0 89 | 90 | * Upgrade to Rust [`1.37.0`](https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html) 91 | 92 | # 0.2.1-rust-1.36.0 93 | 94 | * Upgrade to Rust [`1.36.0`](https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html) 95 | 96 | # 0.2.1-rust-1.35.0 97 | 98 | * Upgrade to Rust [`1.35.0`](https://blog.rust-lang.org/2019/05/23/Rust-1.35.0.html) 99 | 100 | # 0.2.1-rust-1.34.2 101 | 102 | * Upgrade to Rust [`1.34.2`](https://blog.rust-lang.org/2019/05/14/Rust-1.34.2.html) 103 | 104 | # 0.2.1-rust-1.34.1 105 | 106 | * Upgrade to Rust [`1.34.1`](https://blog.rust-lang.org/2019/04/25/Rust-1.34.1.html) 107 | 108 | # 0.2.1-rust-1.34.0 109 | 110 | * Upgrade to Rust [`1.34.0`](https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html) 111 | 112 | # 0.2.1-rust-1.33.0 113 | 114 | * Upgrade to Rust [`1.33.0`](https://blog.rust-lang.org/2019/02/28/Rust-1.33.0.html) 115 | 116 | # 0.2.1-rust-1.32.0 117 | 118 | * Added support for `BIN` env variable for naming precisely the bin to package 119 | * Handle case where Cargo bin is explicitly named `bootstrap` 120 | * Introduce integration testing 121 | 122 | # 0.2.0-rust-1.32.0 123 | 124 | * Upgrade to Rust [`1.32.0`](https://blog.rust-lang.org/2019/01/17/Rust-1.32.0.html) 125 | 126 | # 0.2.0-rust-1.31.1 127 | 128 | * Upgrade to Rust [`1.31.1`](https://blog.rust-lang.org/2018/12/20/Rust-1.31.1.html) 129 | 130 | # 0.2.0-rust-1.31.0 131 | 132 | * Breaking change: move to now officially supported `provided` runtime 133 | * Upgrade to Rust `1.31.0`, enabling the first stable version `2018 edition` Rust. 134 | 135 | # 0.1.* 136 | 137 | * Rust versions for `python 3.6` runtime targetting [rust crowbar](https://github.com/ilianaw/rust-crowbar) and [lando](https://github.com/softprops/lando) applications 138 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # https://github.com/lambci/docker-lambda#documentation 2 | FROM lambci/lambda:build-provided.al2 3 | 4 | ARG RUST_VERSION=1.51.0 5 | RUN yum install -y jq openssl-devel 6 | RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ 7 | | CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION 8 | ADD build.sh /usr/local/bin/ 9 | VOLUME ["/code"] 10 | WORKDIR /code 11 | ENTRYPOINT ["/usr/local/bin/build.sh"] 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Doug Tangren 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | VERSION ?= 0.4.0 2 | RUST_VERSION ?= 1.51.0 3 | REPO ?= softprops/lambda-rust 4 | TAG ?= "$(REPO):$(VERSION)-rust-$(RUST_VERSION)" 5 | 6 | publish: build 7 | @docker push $(TAG) 8 | @docker push $(REPO):latest 9 | 10 | build: 11 | @docker build --build-arg RUST_VERSION=$(RUST_VERSION) -t $(TAG) . 12 | @docker tag $(TAG) $(REPO):latest 13 | 14 | test: build 15 | @tests/test.sh 16 | 17 | debug: build 18 | @docker run --rm -it \ 19 | -u $(id -u):$(id -g) \ 20 | -v ${PWD}:/code \ 21 | -v ${HOME}/.cargo/registry:/cargo/registry \ 22 | -v ${HOME}/.cargo/git:/cargo/git \ 23 | --entrypoint=/bin/bash \ 24 | $(REPO) 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AWS Lambda [Rust](https://www.rust-lang.org/) docker builder 🐑 🦀 🐳 [![Build Status](https://github.com/softprops/lambda-rust/workflows/Main/badge.svg)](https://github.com/softprops/lambda-rust/actions) 2 | 3 | 4 | ## 🤔 about 5 | 6 | This docker image extends [lambda ci `provided.al2`](https://github.com/lambci/docker-lambda#documentation) builder docker image, a faithful reproduction of the actual AWS "**provided.al2**" Lambda runtime environment, 7 | and installs [rustup](https://rustup.rs/) and the *stable* rust toolchain. 8 | 9 | This provides a build environment, consistent with your target execution environment for predictable results. 10 | 11 | ## 📦 install 12 | 13 | Tags for this docker image follow the naming convention `softprops/lambda-rust:{version}-rust-{rust-stable-version}` 14 | where `{rust-stable-version}` is a stable version of rust. 15 | 16 | You can find a list of available docker tags [here](https://hub.docker.com/r/softprops/lambda-rust/tags) 17 | 18 | > 💡 If you don't find the version you're looking for, please [open a new github issue](https://github.com/softprops/lambda-rust/issues/new?title=I%27m%20looking%20for%20version%20xxx) to publish one 19 | 20 | You can also depend directly on `softprops/lambda-rust:latest` for the most recently published version. 21 | 22 | ## 🤸 usage 23 | 24 | The default docker entrypoint will build a packaged release optimized version of your Rust artifact under `target/lambda/release` to 25 | isolate the lambda specific build artifacts from your host-local build artifacts. 26 | 27 | > **⚠️ Note:** you can switch from the `release` profile to a custom profile like `dev` by providing a `PROFILE` environment variable set to the name of the desired profile. i.e. `-e PROFILE=dev` in your docker run 28 | 29 | > **⚠️ Note:** you can include debug symbols in optimized release build binaries by setting `DEBUGINFO`. By default, debug symbols will be stripped from the release binary and set aside in a separate .debug file. 30 | 31 | You will want to volume mount `/code` to the directory containing your cargo project. 32 | 33 | You can pass additional flags to `cargo`, the Rust build tool, by setting the `CARGO_FLAGS` docker env variable. 34 | 35 | Unzipped `boostrap` and `boostrap.debug` files are always available 36 | under `target/lambda/${PROFILE}/output/${BIN}` dir. If you want only them and don't 37 | need a `.zip` archive (e.g. for when running lambdas locally) pass `-e PACKAGE=false` 38 | flag. More on that in [local testing](#-local-testing). 39 | 40 | A typical docker run might look like the following. 41 | 42 | ```sh 43 | $ docker run --rm \ 44 | -u $(id -u):$(id -g) \ 45 | -v ${PWD}:/code \ 46 | -v ${HOME}/.cargo/registry:/cargo/registry \ 47 | -v ${HOME}/.cargo/git:/cargo/git \ 48 | softprops/lambda-rust 49 | ``` 50 | > 💡 The -v (volume mount) flags for `/cargo/{registry,git}` are optional but when supplied, provides a much faster turn around when doing iterative development 51 | 52 | Note that `-u $(id -u):$(id -g)` argument is crucial for the container to produce artifacts 53 | owned by the current host user, otherwise you won't be able to `rm -rf target/lambda` 54 | or run `cargo update`, because the container will write artifacts owned by `root` docker user 55 | to `target/lambda` and `./cargo/{registry,git}` dirs which will break your dev and/or ci environment. 56 | 57 | You should also ensure that you do have `${HOME}/.cargo/{registry,git}` dirs created 58 | on your host machine, otherwise docker will create them automatically and assign `root` user 59 | as an owner for these dirs which is unfortunate... 60 | 61 | If you are using Windows, the command above may need to be modified to include 62 | a `BIN` environment variable set to the name of the binary to be build and packaged 63 | 64 | ```diff 65 | $ docker run --rm \ 66 | -u $(id -u):$(id -g) \ 67 | + -e BIN={your-binary-name} \ 68 | -v ${PWD}:/code \ 69 | -v ${HOME}/.cargo/registry:/cargo/registry \ 70 | -v ${HOME}/.cargo/git:/cargo/git \ 71 | softprops/lambda-rust 72 | ``` 73 | 74 | For more custom codebases, the '-w' argument can be used to override the working directory. 75 | This can be especially useful when using path dependencies for local crates. 76 | 77 | ```sh 78 | $ docker run --rm \ 79 | -u $(id -u):$(id -g) \ 80 | -v ${PWD}/lambdas/mylambda:/code/lambdas/mylambda \ 81 | -v ${PWD}/libs/mylib:/code/libs/mylib \ 82 | -v ${HOME}/.cargo/registry:/cargo/registry \ 83 | -v ${HOME}/.cargo/git:/cargo/git \ 84 | -w /code/lambdas/mylambda \ 85 | softprops/lambda-rust 86 | ``` 87 | 88 | ## ⚓ using hooks 89 | 90 | If you want to customize certain parts of the build process, you can leverage hooks that this image provides. 91 | Hooks are just shell scripts that are invoked in a specific order, so you can customize the process as you wish. The following hooks exist: 92 | * `install`: run before `cargo build` - useful for installing native dependencies on the lambda environment 93 | * `build`: run after `cargo build`, but before packaging the executable into a zip - useful when modifying the executable after compilation 94 | * `package`: run after packaging the executable into a zip - useful for adding extra files into the zip file 95 | 96 | The hooks' names are predefined and must be placed in a directory `.lambda-rust` in the project root. 97 | 98 | You can take a look at an example [here](./tests/test-func-with-hooks). 99 | 100 | ## 🔬 local testing 101 | 102 | Once you've built a Rust lambda function artifact, the `provided.al2` runtime expects 103 | deployments of that artifact to be named "**bootstrap**". The `lambda-rust` docker image 104 | builds a zip file, named after the binary, containing your binary file renamed to "bootstrap" for you, but zip file creation is unnecessary for local development. 105 | 106 | In order to prevent the creation of an intermediate `.zip` artifact when testing your lambdas locally, pass `-e PACKAGE=false` during the build. After that the necessary 107 | output (not zipped) is available under `target/lambda/{profile}/output/{your-lambda-binary-name}` dir. 108 | You will see both `bootstrap` and `bootstrap.debug` files there. 109 | > **⚠️ Note:** `PACKAGE=false` prevents `package` hook from running. 110 | 111 | You can then invoke this bootstap executable with the lambda-ci docker image for the `provided.al2` AWS lambda runtime with a one off container. 112 | 113 | ```sh 114 | # Build your function skipping the zip creation step 115 | # You may pass `-e PROFILE=dev` to build using dev profile, but here we use `release` 116 | docker run \ 117 | -u $(id -u):$(id -g) \ 118 | -e PACKAGE=false \ 119 | -e BIN={your-binary-name} \ 120 | -v ${PWD}:/code \ 121 | -v ${HOME}/.cargo/registry:/cargo/registry \ 122 | -v ${HOME}/.cargo/git:/cargo/git \ 123 | softprops/lambda-rust 124 | 125 | # start a one-off docker container replicating the "provided.al2" lambda runtime 126 | # awaiting an event to be provided via stdin 127 | $ docker run \ 128 | -i -e DOCKER_LAMBDA_USE_STDIN=1 \ 129 | --rm \ 130 | -v ${PWD}/target/lambda/release/output/{your-binary-name}:/var/task:ro,delegated \ 131 | lambci/lambda:provided.al2 132 | 133 | # provide an event payload via stdin (typically a json blob) 134 | 135 | # Ctrl-D to yield control back to your function 136 | ``` 137 | 138 | You may find the one-off container less than ideal if you wish to trigger your lambda multiple times. For these cases try using the "stay open" mode of execution. 139 | 140 | ```sh 141 | # start a long running docker container replicating the "provided" lambda runtime 142 | # listening on port 9001 143 | $ unzip -o \ 144 | target/lambda/release/{your-binary-name}.zip \ 145 | -d /tmp/lambda && \ 146 | docker run \ 147 | --rm \ 148 | -v /tmp/lambda:/var/task:ro,delegated \ 149 | -e DOCKER_LAMBDA_STAY_OPEN=1 \ 150 | -p 9001:9001 \ 151 | lambci/lambda:provided.al2 152 | ``` 153 | 154 | In a separate terminal, you can invoke your function with `curl` 155 | 156 | The `-d` flag is a means of providing your function's input. 157 | 158 | ```sh 159 | $ curl -d '{}' \ 160 | http://localhost:9001/2015-03-31/functions/myfunction/invocations 161 | ``` 162 | 163 | You can also use the `aws` cli to invoke your function locally. The `--payload` is a means of providing your function's input. 164 | 165 | ```sh 166 | $ aws lambda invoke \ 167 | --endpoint http://localhost:9001 \ 168 | --cli-binary-format raw-in-base64-out \ 169 | --no-sign-request \ 170 | --function-name myfunction \ 171 | --payload '{}' out.json \ 172 | && cat out.json \ 173 | && rm -f out.json 174 | ``` 175 | 176 | ## 🤸🤸 usage via cargo aws-lambda subcommand 177 | 178 | A third party cargo subcommand exists to compile your code into a zip file and deploy it. This comes with only 179 | rust and docker as dependencies. 180 | 181 | Setup 182 | 183 | ```sh 184 | $ cargo install cargo-aws-lambda 185 | ``` 186 | 187 | To compile and deploy in your project directory 188 | ```sh 189 | $ cargo aws-lambda {your aws function's full ARN} {your-binary-name} 190 | ``` 191 | 192 | To list all options 193 | ```sh 194 | $ cargo aws-lambda --help 195 | ``` 196 | 197 | More instructions can be found [here](https://github.com/vvilhonen/cargo-aws-lambda). 198 | 199 | 200 | Doug Tangren (softprops) 2020 201 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # build and pack a rust lambda library 3 | # https://aws.amazon.com/blogs/opensource/rust-runtime-for-aws-lambda/ 4 | 5 | HOOKS_DIR="$PWD/.lambda-rust" 6 | INSTALL_HOOK="install" 7 | BUILD_HOOK="build" 8 | PACKAGE_HOOK="package" 9 | 10 | set -eo pipefail 11 | mkdir -p target/lambda 12 | export PROFILE=${PROFILE:-release} 13 | export PACKAGE=${PACKAGE:-true} 14 | export DEBUGINFO=${DEBUGINFO} 15 | export CARGO_HOME="/cargo" 16 | export RUSTUP_HOME="/rustup" 17 | 18 | # cargo uses different names for target 19 | # of its build profiles 20 | if [[ "${PROFILE}" == "release" ]]; then 21 | TARGET_PROFILE="${PROFILE}" 22 | else 23 | TARGET_PROFILE="debug" 24 | fi 25 | export CARGO_TARGET_DIR=$PWD/target/lambda 26 | ( 27 | if [[ $# -gt 0 ]]; then 28 | yum install -y "$@" 29 | fi 30 | 31 | if test -f "$HOOKS_DIR/$INSTALL_HOOK"; then 32 | echo "Running install hook" 33 | /bin/bash "$HOOKS_DIR/$INSTALL_HOOK" 34 | echo "Install hook ran successfully" 35 | fi 36 | 37 | # source cargo 38 | . $CARGO_HOME/env 39 | 40 | CARGO_BIN_ARG="" && [[ -n "$BIN" ]] && CARGO_BIN_ARG="--bin ${BIN}" 41 | 42 | # cargo only supports --release flag for release 43 | # profiles. dev is implicit 44 | if [ "${PROFILE}" == "release" ]; then 45 | cargo build ${CARGO_BIN_ARG} ${CARGO_FLAGS:-} --${PROFILE} 46 | else 47 | cargo build ${CARGO_BIN_ARG} ${CARGO_FLAGS:-} 48 | fi 49 | 50 | if test -f "$HOOKS_DIR/$BUILD_HOOK"; then 51 | echo "Running build hook" 52 | /bin/bash "$HOOKS_DIR/$BUILD_HOOK" 53 | echo "Build hook ran successfully" 54 | fi 55 | ) 1>&2 56 | 57 | function package() { 58 | file="$1" 59 | OUTPUT_FOLDER="output/${file}" 60 | if [[ "${PROFILE}" == "release" ]] && [[ -z "${DEBUGINFO}" ]]; then 61 | objcopy --only-keep-debug "$file" "$file.debug" 62 | objcopy --strip-debug --strip-unneeded "$file" 63 | objcopy --add-gnu-debuglink="$file.debug" "$file" 64 | fi 65 | rm "$file.zip" > 2&>/dev/null || true 66 | rm -r "${OUTPUT_FOLDER}" > 2&>/dev/null || true 67 | mkdir -p "${OUTPUT_FOLDER}" 68 | cp "${file}" "${OUTPUT_FOLDER}/bootstrap" 69 | cp "${file}.debug" "${OUTPUT_FOLDER}/bootstrap.debug" > 2&>/dev/null || true 70 | 71 | if [[ "$PACKAGE" != "false" ]]; then 72 | zip -j "$file.zip" "${OUTPUT_FOLDER}/bootstrap" 73 | if test -f "$HOOKS_DIR/$PACKAGE_HOOK"; then 74 | echo "Running package hook" 75 | /bin/bash "$HOOKS_DIR/$PACKAGE_HOOK" $file 76 | echo "Package hook ran successfully" 77 | fi 78 | fi 79 | } 80 | 81 | cd "${CARGO_TARGET_DIR}/${TARGET_PROFILE}" 82 | ( 83 | . $CARGO_HOME/env 84 | if [ -z "$BIN" ]; then 85 | IFS=$'\n' 86 | for executable in $(cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | .targets[] | select(.kind[] | contains("bin")) | .name'); do 87 | package "$executable" 88 | done 89 | else 90 | package "$BIN" 91 | fi 92 | 93 | ) 1>&2 94 | -------------------------------------------------------------------------------- /tests/bashtest.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # decor 4 | RED='\033[0;31m' 5 | GREEN='\033[0;32m' 6 | NC='\033[0m' 7 | 8 | # test state 9 | TESTS=0 10 | FAILED=0 11 | 12 | # Verify that a command succeeds 13 | assert() { 14 | MESSAGE="$1" 15 | shift 16 | COMMAND="$@" 17 | 18 | ((++TESTS)) 19 | 20 | if $COMMAND 21 | then 22 | echo -e "👍 ${GREEN} $MESSAGE: success${NC}" 23 | else 24 | echo -e "👎 ${RED} ${MESSAGE}: fail${NC}" 25 | ((++FAILED)) 26 | fi 27 | } 28 | 29 | end_tests() { 30 | if ((FAILED > 0)) 31 | then 32 | echo 33 | echo -e "💀 ${RED} Ran ${TESTS} tests, ${FAILED} failed.${NC}" 34 | exit $FAILED 35 | else 36 | echo 37 | echo -e "👌 ${GREEN} ${TESTS} tests passed.${NC}" 38 | exit 0 39 | fi 40 | } -------------------------------------------------------------------------------- /tests/test-func-with-hooks/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/softprops/lambda-rust/e6137ddbac36d104236407eb537c6c03a16a30fa/tests/test-func-with-hooks/.gitignore -------------------------------------------------------------------------------- /tests/test-func-with-hooks/.lambda-rust/build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "build hook called" 4 | echo -n 'build,' >> /code/output.log -------------------------------------------------------------------------------- /tests/test-func-with-hooks/.lambda-rust/install: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "install hook called" 4 | rm /code/output.log 5 | echo -n 'install,' >> /code/output.log -------------------------------------------------------------------------------- /tests/test-func-with-hooks/.lambda-rust/package: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "package hook called" 4 | echo -n 'package' >> /code/output.log 5 | zip -j "$1.zip" /code/output.log -------------------------------------------------------------------------------- /tests/test-func-with-hooks/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "autocfg" 5 | version = "0.1.7" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | 8 | [[package]] 9 | name = "backtrace" 10 | version = "0.3.40" 11 | source = "registry+https://github.com/rust-lang/crates.io-index" 12 | dependencies = [ 13 | "backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", 14 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 15 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 16 | "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 17 | ] 18 | 19 | [[package]] 20 | name = "backtrace-sys" 21 | version = "0.1.32" 22 | source = "registry+https://github.com/rust-lang/crates.io-index" 23 | dependencies = [ 24 | "cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)", 25 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 26 | ] 27 | 28 | [[package]] 29 | name = "bitflags" 30 | version = "1.2.1" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | 33 | [[package]] 34 | name = "byteorder" 35 | version = "1.3.2" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | 38 | [[package]] 39 | name = "bytes" 40 | version = "0.4.12" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | dependencies = [ 43 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 44 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 45 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 46 | ] 47 | 48 | [[package]] 49 | name = "cc" 50 | version = "1.0.48" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | 53 | [[package]] 54 | name = "cfg-if" 55 | version = "0.1.10" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | 58 | [[package]] 59 | name = "chrono" 60 | version = "0.4.10" 61 | source = "registry+https://github.com/rust-lang/crates.io-index" 62 | dependencies = [ 63 | "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)", 64 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 65 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 66 | ] 67 | 68 | [[package]] 69 | name = "cloudabi" 70 | version = "0.0.3" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | dependencies = [ 73 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 74 | ] 75 | 76 | [[package]] 77 | name = "crossbeam-deque" 78 | version = "0.7.2" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | dependencies = [ 81 | "crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 82 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 83 | ] 84 | 85 | [[package]] 86 | name = "crossbeam-epoch" 87 | version = "0.8.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | dependencies = [ 90 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 91 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 92 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 94 | "memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 96 | ] 97 | 98 | [[package]] 99 | name = "crossbeam-queue" 100 | version = "0.1.2" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | dependencies = [ 103 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 104 | ] 105 | 106 | [[package]] 107 | name = "crossbeam-utils" 108 | version = "0.6.6" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | dependencies = [ 111 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 113 | ] 114 | 115 | [[package]] 116 | name = "crossbeam-utils" 117 | version = "0.7.0" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | dependencies = [ 120 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 121 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 122 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 123 | ] 124 | 125 | [[package]] 126 | name = "either" 127 | version = "1.5.3" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | 130 | [[package]] 131 | name = "failure" 132 | version = "0.1.6" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | dependencies = [ 135 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 136 | "failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 137 | ] 138 | 139 | [[package]] 140 | name = "failure_derive" 141 | version = "0.1.6" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | dependencies = [ 144 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 145 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 146 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 147 | "synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)", 148 | ] 149 | 150 | [[package]] 151 | name = "fnv" 152 | version = "1.0.6" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | 155 | [[package]] 156 | name = "fuchsia-zircon" 157 | version = "0.3.3" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | dependencies = [ 160 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 162 | ] 163 | 164 | [[package]] 165 | name = "fuchsia-zircon-sys" 166 | version = "0.3.3" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | 169 | [[package]] 170 | name = "futures" 171 | version = "0.1.29" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | 174 | [[package]] 175 | name = "futures-cpupool" 176 | version = "0.1.8" 177 | source = "registry+https://github.com/rust-lang/crates.io-index" 178 | dependencies = [ 179 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 180 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 181 | ] 182 | 183 | [[package]] 184 | name = "h2" 185 | version = "0.1.26" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | dependencies = [ 188 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 189 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 190 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 191 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 192 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 197 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 198 | ] 199 | 200 | [[package]] 201 | name = "hermit-abi" 202 | version = "0.1.5" 203 | source = "registry+https://github.com/rust-lang/crates.io-index" 204 | dependencies = [ 205 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 206 | ] 207 | 208 | [[package]] 209 | name = "http" 210 | version = "0.1.21" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | dependencies = [ 213 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 216 | ] 217 | 218 | [[package]] 219 | name = "http-body" 220 | version = "0.1.0" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | dependencies = [ 223 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 224 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 225 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 226 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 227 | ] 228 | 229 | [[package]] 230 | name = "httparse" 231 | version = "1.3.4" 232 | source = "registry+https://github.com/rust-lang/crates.io-index" 233 | 234 | [[package]] 235 | name = "hyper" 236 | version = "0.12.35" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | dependencies = [ 239 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 241 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 242 | "h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", 243 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 244 | "http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 245 | "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 246 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 247 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 248 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 251 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 252 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 253 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 254 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 255 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 256 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 257 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 258 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 259 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 260 | "want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 261 | ] 262 | 263 | [[package]] 264 | name = "indexmap" 265 | version = "1.3.0" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | dependencies = [ 268 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 269 | ] 270 | 271 | [[package]] 272 | name = "iovec" 273 | version = "0.1.4" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | dependencies = [ 276 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 277 | ] 278 | 279 | [[package]] 280 | name = "itoa" 281 | version = "0.4.4" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | 284 | [[package]] 285 | name = "kernel32-sys" 286 | version = "0.2.2" 287 | source = "registry+https://github.com/rust-lang/crates.io-index" 288 | dependencies = [ 289 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 290 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 291 | ] 292 | 293 | [[package]] 294 | name = "lambda_runtime" 295 | version = "0.2.1" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | dependencies = [ 298 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 299 | "lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 300 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 301 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 302 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 303 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 304 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 305 | ] 306 | 307 | [[package]] 308 | name = "lambda_runtime_client" 309 | version = "0.2.2" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | dependencies = [ 312 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 313 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 314 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 315 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 316 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 317 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 318 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 319 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 320 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 321 | ] 322 | 323 | [[package]] 324 | name = "lambda_runtime_core" 325 | version = "0.1.2" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 332 | "lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 333 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 334 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 335 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 336 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 337 | ] 338 | 339 | [[package]] 340 | name = "lambda_runtime_errors" 341 | version = "0.1.1" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | dependencies = [ 344 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 345 | "lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 347 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 348 | ] 349 | 350 | [[package]] 351 | name = "lambda_runtime_errors_derive" 352 | version = "0.1.1" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | dependencies = [ 355 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 356 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 358 | "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 359 | ] 360 | 361 | [[package]] 362 | name = "lazy_static" 363 | version = "1.4.0" 364 | source = "registry+https://github.com/rust-lang/crates.io-index" 365 | 366 | [[package]] 367 | name = "libc" 368 | version = "0.2.66" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | 371 | [[package]] 372 | name = "lock_api" 373 | version = "0.3.2" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | dependencies = [ 376 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 377 | ] 378 | 379 | [[package]] 380 | name = "log" 381 | version = "0.4.8" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | dependencies = [ 384 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 385 | ] 386 | 387 | [[package]] 388 | name = "maybe-uninit" 389 | version = "2.0.0" 390 | source = "registry+https://github.com/rust-lang/crates.io-index" 391 | 392 | [[package]] 393 | name = "memoffset" 394 | version = "0.5.3" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | dependencies = [ 397 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 398 | ] 399 | 400 | [[package]] 401 | name = "mio" 402 | version = "0.6.21" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | dependencies = [ 405 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 406 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 407 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 408 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 409 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 414 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 415 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 416 | ] 417 | 418 | [[package]] 419 | name = "mio-uds" 420 | version = "0.6.7" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | dependencies = [ 423 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 424 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 425 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 426 | ] 427 | 428 | [[package]] 429 | name = "miow" 430 | version = "0.2.1" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | dependencies = [ 433 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 434 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 435 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 436 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 437 | ] 438 | 439 | [[package]] 440 | name = "net2" 441 | version = "0.2.33" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | dependencies = [ 444 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 445 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 446 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 447 | ] 448 | 449 | [[package]] 450 | name = "num-integer" 451 | version = "0.1.41" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | dependencies = [ 454 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 456 | ] 457 | 458 | [[package]] 459 | name = "num-traits" 460 | version = "0.2.10" 461 | source = "registry+https://github.com/rust-lang/crates.io-index" 462 | dependencies = [ 463 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 464 | ] 465 | 466 | [[package]] 467 | name = "num_cpus" 468 | version = "1.11.1" 469 | source = "registry+https://github.com/rust-lang/crates.io-index" 470 | dependencies = [ 471 | "hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 472 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 473 | ] 474 | 475 | [[package]] 476 | name = "parking_lot" 477 | version = "0.9.0" 478 | source = "registry+https://github.com/rust-lang/crates.io-index" 479 | dependencies = [ 480 | "lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 481 | "parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", 482 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 483 | ] 484 | 485 | [[package]] 486 | name = "parking_lot_core" 487 | version = "0.6.2" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | dependencies = [ 490 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 492 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 493 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 494 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 495 | "smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 496 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 497 | ] 498 | 499 | [[package]] 500 | name = "proc-macro2" 501 | version = "0.4.30" 502 | source = "registry+https://github.com/rust-lang/crates.io-index" 503 | dependencies = [ 504 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 505 | ] 506 | 507 | [[package]] 508 | name = "proc-macro2" 509 | version = "1.0.6" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | dependencies = [ 512 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 513 | ] 514 | 515 | [[package]] 516 | name = "quote" 517 | version = "0.6.13" 518 | source = "registry+https://github.com/rust-lang/crates.io-index" 519 | dependencies = [ 520 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 521 | ] 522 | 523 | [[package]] 524 | name = "quote" 525 | version = "1.0.2" 526 | source = "registry+https://github.com/rust-lang/crates.io-index" 527 | dependencies = [ 528 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 529 | ] 530 | 531 | [[package]] 532 | name = "redox_syscall" 533 | version = "0.1.56" 534 | source = "registry+https://github.com/rust-lang/crates.io-index" 535 | 536 | [[package]] 537 | name = "rustc-demangle" 538 | version = "0.1.16" 539 | source = "registry+https://github.com/rust-lang/crates.io-index" 540 | 541 | [[package]] 542 | name = "rustc_version" 543 | version = "0.2.3" 544 | source = "registry+https://github.com/rust-lang/crates.io-index" 545 | dependencies = [ 546 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 547 | ] 548 | 549 | [[package]] 550 | name = "ryu" 551 | version = "1.0.2" 552 | source = "registry+https://github.com/rust-lang/crates.io-index" 553 | 554 | [[package]] 555 | name = "scopeguard" 556 | version = "1.0.0" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | 559 | [[package]] 560 | name = "semver" 561 | version = "0.9.0" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | dependencies = [ 564 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 565 | ] 566 | 567 | [[package]] 568 | name = "semver-parser" 569 | version = "0.7.0" 570 | source = "registry+https://github.com/rust-lang/crates.io-index" 571 | 572 | [[package]] 573 | name = "serde" 574 | version = "1.0.104" 575 | source = "registry+https://github.com/rust-lang/crates.io-index" 576 | 577 | [[package]] 578 | name = "serde_derive" 579 | version = "1.0.104" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | dependencies = [ 582 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 583 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 584 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 585 | ] 586 | 587 | [[package]] 588 | name = "serde_json" 589 | version = "1.0.44" 590 | source = "registry+https://github.com/rust-lang/crates.io-index" 591 | dependencies = [ 592 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 593 | "ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 594 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 595 | ] 596 | 597 | [[package]] 598 | name = "slab" 599 | version = "0.4.2" 600 | source = "registry+https://github.com/rust-lang/crates.io-index" 601 | 602 | [[package]] 603 | name = "smallvec" 604 | version = "0.6.13" 605 | source = "registry+https://github.com/rust-lang/crates.io-index" 606 | dependencies = [ 607 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 608 | ] 609 | 610 | [[package]] 611 | name = "string" 612 | version = "0.2.1" 613 | source = "registry+https://github.com/rust-lang/crates.io-index" 614 | dependencies = [ 615 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 616 | ] 617 | 618 | [[package]] 619 | name = "syn" 620 | version = "0.15.44" 621 | source = "registry+https://github.com/rust-lang/crates.io-index" 622 | dependencies = [ 623 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 624 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 625 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 626 | ] 627 | 628 | [[package]] 629 | name = "syn" 630 | version = "1.0.11" 631 | source = "registry+https://github.com/rust-lang/crates.io-index" 632 | dependencies = [ 633 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 634 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 635 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 636 | ] 637 | 638 | [[package]] 639 | name = "synstructure" 640 | version = "0.10.2" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | dependencies = [ 643 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 644 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 645 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 646 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 647 | ] 648 | 649 | [[package]] 650 | name = "synstructure" 651 | version = "0.12.3" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | dependencies = [ 654 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 655 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 656 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 657 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 658 | ] 659 | 660 | [[package]] 661 | name = "test-func-with-hooks" 662 | version = "0.1.0" 663 | dependencies = [ 664 | "lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 665 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 666 | ] 667 | 668 | [[package]] 669 | name = "time" 670 | version = "0.1.42" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | dependencies = [ 673 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 674 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 675 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 676 | ] 677 | 678 | [[package]] 679 | name = "tokio" 680 | version = "0.1.22" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | dependencies = [ 683 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 684 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 685 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 686 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 687 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 688 | "tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 689 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 691 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 692 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 693 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 694 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 695 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 696 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 697 | "tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 698 | "tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 699 | ] 700 | 701 | [[package]] 702 | name = "tokio-buf" 703 | version = "0.1.1" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | dependencies = [ 706 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 707 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 708 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 709 | ] 710 | 711 | [[package]] 712 | name = "tokio-codec" 713 | version = "0.1.1" 714 | source = "registry+https://github.com/rust-lang/crates.io-index" 715 | dependencies = [ 716 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 717 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 718 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 719 | ] 720 | 721 | [[package]] 722 | name = "tokio-current-thread" 723 | version = "0.1.6" 724 | source = "registry+https://github.com/rust-lang/crates.io-index" 725 | dependencies = [ 726 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 727 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 728 | ] 729 | 730 | [[package]] 731 | name = "tokio-executor" 732 | version = "0.1.9" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | dependencies = [ 735 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 736 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 737 | ] 738 | 739 | [[package]] 740 | name = "tokio-fs" 741 | version = "0.1.6" 742 | source = "registry+https://github.com/rust-lang/crates.io-index" 743 | dependencies = [ 744 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 745 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 746 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 747 | ] 748 | 749 | [[package]] 750 | name = "tokio-io" 751 | version = "0.1.12" 752 | source = "registry+https://github.com/rust-lang/crates.io-index" 753 | dependencies = [ 754 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 755 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 756 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 757 | ] 758 | 759 | [[package]] 760 | name = "tokio-reactor" 761 | version = "0.1.11" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | dependencies = [ 764 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 766 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 767 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 768 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 769 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 770 | "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 771 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 772 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 773 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 774 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 775 | ] 776 | 777 | [[package]] 778 | name = "tokio-sync" 779 | version = "0.1.7" 780 | source = "registry+https://github.com/rust-lang/crates.io-index" 781 | dependencies = [ 782 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 783 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 784 | ] 785 | 786 | [[package]] 787 | name = "tokio-tcp" 788 | version = "0.1.3" 789 | source = "registry+https://github.com/rust-lang/crates.io-index" 790 | dependencies = [ 791 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 792 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 793 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 794 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 795 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 796 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 797 | ] 798 | 799 | [[package]] 800 | name = "tokio-threadpool" 801 | version = "0.1.17" 802 | source = "registry+https://github.com/rust-lang/crates.io-index" 803 | dependencies = [ 804 | "crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 805 | "crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 806 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 807 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 808 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 809 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 810 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 811 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 813 | ] 814 | 815 | [[package]] 816 | name = "tokio-timer" 817 | version = "0.2.12" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | dependencies = [ 820 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 821 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 822 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 823 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 824 | ] 825 | 826 | [[package]] 827 | name = "tokio-udp" 828 | version = "0.1.5" 829 | source = "registry+https://github.com/rust-lang/crates.io-index" 830 | dependencies = [ 831 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 832 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 833 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 834 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 835 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 836 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 837 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 838 | ] 839 | 840 | [[package]] 841 | name = "tokio-uds" 842 | version = "0.2.5" 843 | source = "registry+https://github.com/rust-lang/crates.io-index" 844 | dependencies = [ 845 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 846 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 847 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 848 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 849 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 850 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 851 | "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", 852 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 853 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 854 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 855 | ] 856 | 857 | [[package]] 858 | name = "try-lock" 859 | version = "0.2.2" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | 862 | [[package]] 863 | name = "unicode-xid" 864 | version = "0.1.0" 865 | source = "registry+https://github.com/rust-lang/crates.io-index" 866 | 867 | [[package]] 868 | name = "unicode-xid" 869 | version = "0.2.0" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | 872 | [[package]] 873 | name = "want" 874 | version = "0.2.0" 875 | source = "registry+https://github.com/rust-lang/crates.io-index" 876 | dependencies = [ 877 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 878 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 879 | "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 880 | ] 881 | 882 | [[package]] 883 | name = "winapi" 884 | version = "0.2.8" 885 | source = "registry+https://github.com/rust-lang/crates.io-index" 886 | 887 | [[package]] 888 | name = "winapi" 889 | version = "0.3.8" 890 | source = "registry+https://github.com/rust-lang/crates.io-index" 891 | dependencies = [ 892 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 893 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 894 | ] 895 | 896 | [[package]] 897 | name = "winapi-build" 898 | version = "0.1.1" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | 901 | [[package]] 902 | name = "winapi-i686-pc-windows-gnu" 903 | version = "0.4.0" 904 | source = "registry+https://github.com/rust-lang/crates.io-index" 905 | 906 | [[package]] 907 | name = "winapi-x86_64-pc-windows-gnu" 908 | version = "0.4.0" 909 | source = "registry+https://github.com/rust-lang/crates.io-index" 910 | 911 | [[package]] 912 | name = "ws2_32-sys" 913 | version = "0.2.1" 914 | source = "registry+https://github.com/rust-lang/crates.io-index" 915 | dependencies = [ 916 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 917 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 918 | ] 919 | 920 | [metadata] 921 | "checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" 922 | "checksum backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)" = "924c76597f0d9ca25d762c25a4d369d51267536465dc5064bdf0eb073ed477ea" 923 | "checksum backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)" = "5d6575f128516de27e3ce99689419835fce9643a9b215a14d2b5b685be018491" 924 | "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 925 | "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" 926 | "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" 927 | "checksum cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)" = "f52a465a666ca3d838ebbf08b241383421412fe7ebb463527bba275526d89f76" 928 | "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 929 | "checksum chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "31850b4a4d6bae316f7a09e691c944c28299298837edc0a03f755618c23cbc01" 930 | "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 931 | "checksum crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3aa945d63861bfe624b55d153a39684da1e8c0bc8fba932f7ee3a3c16cea3ca" 932 | "checksum crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5064ebdbf05ce3cb95e45c8b086f72263f4166b29b97f6baff7ef7fe047b55ac" 933 | "checksum crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b" 934 | "checksum crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6" 935 | "checksum crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce446db02cdc3165b94ae73111e570793400d0794e46125cc4056c81cbb039f4" 936 | "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" 937 | "checksum failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "f8273f13c977665c5db7eb2b99ae520952fe5ac831ae4cd09d80c4c7042b5ed9" 938 | "checksum failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0bc225b78e0391e4b8683440bf2e63c2deeeb2ce5189eab46e2b68c6d3725d08" 939 | "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" 940 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 941 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 942 | "checksum futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)" = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef" 943 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 944 | "checksum h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462" 945 | "checksum hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f629dc602392d3ec14bfc8a09b5e644d7ffd725102b48b81e59f90f2633621d7" 946 | "checksum http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" 947 | "checksum http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d" 948 | "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 949 | "checksum hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)" = "9dbe6ed1438e1f8ad955a4701e9a944938e9519f6888d12d8558b645e247d5f6" 950 | "checksum indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712d7b3ea5827fcb9d4fda14bf4da5f136f0db2ae9c8f4bd4e2d1c6fde4e6db2" 951 | "checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 952 | "checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f" 953 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 954 | "checksum lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "077b8819fe6998266342efdc5154192551143f390ab758007cc7421992e61b07" 955 | "checksum lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f5e64758b587f1d07b6ca4814a3bc0f3db48c89cc3c895db43a23c690855b370" 956 | "checksum lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "da1cb59e060c1068cfa386b58c202a4381c509ace85a1eadab505164f0563ca5" 957 | "checksum lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "93b63ea3688df164aaa5643c5f3291cc481366d624729deb3c4dc85ee65ac20a" 958 | "checksum lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "38fa619ec6f1ee2371a109683d251035c83f01b8ffc10f4aa46de821836a7baf" 959 | "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 960 | "checksum libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)" = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558" 961 | "checksum lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e57b3997725d2b60dbec1297f6c2e2957cc383db1cebd6be812163f969c7d586" 962 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 963 | "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" 964 | "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9" 965 | "checksum mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f" 966 | "checksum mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125" 967 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 968 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" 969 | "checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" 970 | "checksum num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c81ffc11c212fa327657cb19dd85eb7419e163b5b076bede2bdb5c974c07e4" 971 | "checksum num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "76dac5ed2a876980778b8b85f75a71b6cbf0db0b1232ee12f826bccb00d09d72" 972 | "checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" 973 | "checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" 974 | "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 975 | "checksum proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27" 976 | "checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 977 | "checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe" 978 | "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 979 | "checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" 980 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 981 | "checksum ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bfa8506c1de11c9c4e4c38863ccbe02a305c8188e85a05a784c9e11e1c3910c8" 982 | "checksum scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b42e15e59b18a828bbf5c58ea01debb36b9b096346de35d941dcb89009f24a0d" 983 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 984 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 985 | "checksum serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "414115f25f818d7dfccec8ee535d76949ae78584fc4f79a6f45a904bf8ab4449" 986 | "checksum serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "128f9e303a5a29922045a830221b8f78ec74a5f544944f3d5984f8ec3895ef64" 987 | "checksum serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)" = "48c575e0cc52bdd09b47f330f646cf59afc586e9c4e3ccd6fc1f625b8ea1dad7" 988 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 989 | "checksum smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6" 990 | "checksum string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d" 991 | "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 992 | "checksum syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "dff0acdb207ae2fe6d5976617f887eb1e35a2ba52c13c7234c790960cdad9238" 993 | "checksum synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f" 994 | "checksum synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "67656ea1dc1b41b1451851562ea232ec2e5a80242139f7e679ceccfb5d61f545" 995 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" 996 | "checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" 997 | "checksum tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" 998 | "checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f" 999 | "checksum tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "d16217cad7f1b840c5a97dfb3c43b0c871fef423a6e8d2118c604e843662a443" 1000 | "checksum tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "ca6df436c42b0c3330a82d855d2ef017cd793090ad550a6bc2184f4b933532ab" 1001 | "checksum tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "3fe6dc22b08d6993916647d108a1a7d15b9cd29c4f4496c62b92c45b5041b7af" 1002 | "checksum tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5090db468dad16e1a7a54c8c67280c5e4b544f3d3e018f0b913b400261f85926" 1003 | "checksum tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "6732fe6b53c8d11178dcb77ac6d9682af27fc6d4cb87789449152e5377377146" 1004 | "checksum tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "d06554cce1ae4a50f42fba8023918afa931413aded705b560e29600ccf7c6d76" 1005 | "checksum tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1d14b10654be682ac43efee27401d792507e30fd8d26389e1da3b185de2e4119" 1006 | "checksum tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f0c32ffea4827978e9aa392d2f743d973c1dfa3730a2ed3f22ce1e6984da848c" 1007 | "checksum tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "1739638e364e558128461fc1ad84d997702c8e31c2e6b18fb99842268199e827" 1008 | "checksum tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f02298505547f73e60f568359ef0d016d5acd6e830ab9bc7c4a5b3403440121b" 1009 | "checksum tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "037ffc3ba0e12a0ab4aca92e5234e0dedeb48fddf6ccd260f1f150a36a9f2445" 1010 | "checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" 1011 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 1012 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 1013 | "checksum want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" 1014 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1015 | "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" 1016 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1017 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1018 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1019 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1020 | -------------------------------------------------------------------------------- /tests/test-func-with-hooks/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "test-func-with-hooks" 3 | version = "0.1.0" 4 | authors = ["Bernardo Belchior "] 5 | edition = "2018" 6 | 7 | # users don't have to do this 8 | # but when they do, the builder packaging still work 9 | [[bin]] 10 | name = "bootstrap" 11 | path = "src/main.rs" 12 | 13 | [dependencies] 14 | lambda_runtime = "0.2" 15 | serde_json = "1.0" -------------------------------------------------------------------------------- /tests/test-func-with-hooks/expected-output.json: -------------------------------------------------------------------------------- 1 | ["install","build","package"] 2 | -------------------------------------------------------------------------------- /tests/test-func-with-hooks/src/main.rs: -------------------------------------------------------------------------------- 1 | use lambda_runtime::{error::HandlerError, lambda, Context}; 2 | use serde_json::Value; 3 | use std::fs::File; 4 | use std::io::Read; 5 | 6 | fn main() { 7 | lambda!(handler) 8 | } 9 | 10 | fn handler( 11 | _event: Value, 12 | _: Context, 13 | ) -> Result { 14 | let mut file = File::open("/var/task/output.log").unwrap(); 15 | let mut contents = String::new(); 16 | file.read_to_string(&mut contents).unwrap(); 17 | Ok(contents.split(",").collect()) 18 | } -------------------------------------------------------------------------------- /tests/test-func-with-hooks/test-event.json: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | -------------------------------------------------------------------------------- /tests/test-func/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/softprops/lambda-rust/e6137ddbac36d104236407eb537c6c03a16a30fa/tests/test-func/.gitignore -------------------------------------------------------------------------------- /tests/test-func/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "autocfg" 5 | version = "0.1.7" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | 8 | [[package]] 9 | name = "backtrace" 10 | version = "0.3.40" 11 | source = "registry+https://github.com/rust-lang/crates.io-index" 12 | dependencies = [ 13 | "backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", 14 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 15 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 16 | "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 17 | ] 18 | 19 | [[package]] 20 | name = "backtrace-sys" 21 | version = "0.1.32" 22 | source = "registry+https://github.com/rust-lang/crates.io-index" 23 | dependencies = [ 24 | "cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)", 25 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 26 | ] 27 | 28 | [[package]] 29 | name = "bitflags" 30 | version = "1.2.1" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | 33 | [[package]] 34 | name = "byteorder" 35 | version = "1.3.2" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | 38 | [[package]] 39 | name = "bytes" 40 | version = "0.4.12" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | dependencies = [ 43 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 44 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 45 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 46 | ] 47 | 48 | [[package]] 49 | name = "cc" 50 | version = "1.0.48" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | 53 | [[package]] 54 | name = "cfg-if" 55 | version = "0.1.10" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | 58 | [[package]] 59 | name = "chrono" 60 | version = "0.4.10" 61 | source = "registry+https://github.com/rust-lang/crates.io-index" 62 | dependencies = [ 63 | "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)", 64 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 65 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 66 | ] 67 | 68 | [[package]] 69 | name = "cloudabi" 70 | version = "0.0.3" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | dependencies = [ 73 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 74 | ] 75 | 76 | [[package]] 77 | name = "crossbeam-deque" 78 | version = "0.7.2" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | dependencies = [ 81 | "crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 82 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 83 | ] 84 | 85 | [[package]] 86 | name = "crossbeam-epoch" 87 | version = "0.8.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | dependencies = [ 90 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 91 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 92 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 94 | "memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 96 | ] 97 | 98 | [[package]] 99 | name = "crossbeam-queue" 100 | version = "0.1.2" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | dependencies = [ 103 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 104 | ] 105 | 106 | [[package]] 107 | name = "crossbeam-utils" 108 | version = "0.6.6" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | dependencies = [ 111 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 113 | ] 114 | 115 | [[package]] 116 | name = "crossbeam-utils" 117 | version = "0.7.0" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | dependencies = [ 120 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 121 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 122 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 123 | ] 124 | 125 | [[package]] 126 | name = "either" 127 | version = "1.5.3" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | 130 | [[package]] 131 | name = "failure" 132 | version = "0.1.6" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | dependencies = [ 135 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 136 | "failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 137 | ] 138 | 139 | [[package]] 140 | name = "failure_derive" 141 | version = "0.1.6" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | dependencies = [ 144 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 145 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 146 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 147 | "synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)", 148 | ] 149 | 150 | [[package]] 151 | name = "fnv" 152 | version = "1.0.6" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | 155 | [[package]] 156 | name = "fuchsia-zircon" 157 | version = "0.3.3" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | dependencies = [ 160 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 162 | ] 163 | 164 | [[package]] 165 | name = "fuchsia-zircon-sys" 166 | version = "0.3.3" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | 169 | [[package]] 170 | name = "futures" 171 | version = "0.1.29" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | 174 | [[package]] 175 | name = "futures-cpupool" 176 | version = "0.1.8" 177 | source = "registry+https://github.com/rust-lang/crates.io-index" 178 | dependencies = [ 179 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 180 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 181 | ] 182 | 183 | [[package]] 184 | name = "h2" 185 | version = "0.1.26" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | dependencies = [ 188 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 189 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 190 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 191 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 192 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 197 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 198 | ] 199 | 200 | [[package]] 201 | name = "hermit-abi" 202 | version = "0.1.5" 203 | source = "registry+https://github.com/rust-lang/crates.io-index" 204 | dependencies = [ 205 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 206 | ] 207 | 208 | [[package]] 209 | name = "http" 210 | version = "0.1.21" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | dependencies = [ 213 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 216 | ] 217 | 218 | [[package]] 219 | name = "http-body" 220 | version = "0.1.0" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | dependencies = [ 223 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 224 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 225 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 226 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 227 | ] 228 | 229 | [[package]] 230 | name = "httparse" 231 | version = "1.3.4" 232 | source = "registry+https://github.com/rust-lang/crates.io-index" 233 | 234 | [[package]] 235 | name = "hyper" 236 | version = "0.12.35" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | dependencies = [ 239 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 241 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 242 | "h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", 243 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 244 | "http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 245 | "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 246 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 247 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 248 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 251 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 252 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 253 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 254 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 255 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 256 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 257 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 258 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 259 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 260 | "want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 261 | ] 262 | 263 | [[package]] 264 | name = "indexmap" 265 | version = "1.3.0" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | dependencies = [ 268 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 269 | ] 270 | 271 | [[package]] 272 | name = "iovec" 273 | version = "0.1.4" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | dependencies = [ 276 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 277 | ] 278 | 279 | [[package]] 280 | name = "itoa" 281 | version = "0.4.4" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | 284 | [[package]] 285 | name = "kernel32-sys" 286 | version = "0.2.2" 287 | source = "registry+https://github.com/rust-lang/crates.io-index" 288 | dependencies = [ 289 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 290 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 291 | ] 292 | 293 | [[package]] 294 | name = "lambda_runtime" 295 | version = "0.2.1" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | dependencies = [ 298 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 299 | "lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 300 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 301 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 302 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 303 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 304 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 305 | ] 306 | 307 | [[package]] 308 | name = "lambda_runtime_client" 309 | version = "0.2.2" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | dependencies = [ 312 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 313 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 314 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 315 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 316 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 317 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 318 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 319 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 320 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 321 | ] 322 | 323 | [[package]] 324 | name = "lambda_runtime_core" 325 | version = "0.1.2" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 332 | "lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 333 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 334 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 335 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 336 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 337 | ] 338 | 339 | [[package]] 340 | name = "lambda_runtime_errors" 341 | version = "0.1.1" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | dependencies = [ 344 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 345 | "lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 347 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 348 | ] 349 | 350 | [[package]] 351 | name = "lambda_runtime_errors_derive" 352 | version = "0.1.1" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | dependencies = [ 355 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 356 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 358 | "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 359 | ] 360 | 361 | [[package]] 362 | name = "lazy_static" 363 | version = "1.4.0" 364 | source = "registry+https://github.com/rust-lang/crates.io-index" 365 | 366 | [[package]] 367 | name = "libc" 368 | version = "0.2.66" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | 371 | [[package]] 372 | name = "lock_api" 373 | version = "0.3.2" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | dependencies = [ 376 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 377 | ] 378 | 379 | [[package]] 380 | name = "log" 381 | version = "0.4.8" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | dependencies = [ 384 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 385 | ] 386 | 387 | [[package]] 388 | name = "maybe-uninit" 389 | version = "2.0.0" 390 | source = "registry+https://github.com/rust-lang/crates.io-index" 391 | 392 | [[package]] 393 | name = "memoffset" 394 | version = "0.5.3" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | dependencies = [ 397 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 398 | ] 399 | 400 | [[package]] 401 | name = "mio" 402 | version = "0.6.21" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | dependencies = [ 405 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 406 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 407 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 408 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 409 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 414 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 415 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 416 | ] 417 | 418 | [[package]] 419 | name = "mio-uds" 420 | version = "0.6.7" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | dependencies = [ 423 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 424 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 425 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 426 | ] 427 | 428 | [[package]] 429 | name = "miow" 430 | version = "0.2.1" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | dependencies = [ 433 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 434 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 435 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 436 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 437 | ] 438 | 439 | [[package]] 440 | name = "net2" 441 | version = "0.2.33" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | dependencies = [ 444 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 445 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 446 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 447 | ] 448 | 449 | [[package]] 450 | name = "num-integer" 451 | version = "0.1.41" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | dependencies = [ 454 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 456 | ] 457 | 458 | [[package]] 459 | name = "num-traits" 460 | version = "0.2.10" 461 | source = "registry+https://github.com/rust-lang/crates.io-index" 462 | dependencies = [ 463 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 464 | ] 465 | 466 | [[package]] 467 | name = "num_cpus" 468 | version = "1.11.1" 469 | source = "registry+https://github.com/rust-lang/crates.io-index" 470 | dependencies = [ 471 | "hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 472 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 473 | ] 474 | 475 | [[package]] 476 | name = "parking_lot" 477 | version = "0.9.0" 478 | source = "registry+https://github.com/rust-lang/crates.io-index" 479 | dependencies = [ 480 | "lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 481 | "parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", 482 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 483 | ] 484 | 485 | [[package]] 486 | name = "parking_lot_core" 487 | version = "0.6.2" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | dependencies = [ 490 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 492 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 493 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 494 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 495 | "smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 496 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 497 | ] 498 | 499 | [[package]] 500 | name = "proc-macro2" 501 | version = "0.4.30" 502 | source = "registry+https://github.com/rust-lang/crates.io-index" 503 | dependencies = [ 504 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 505 | ] 506 | 507 | [[package]] 508 | name = "proc-macro2" 509 | version = "1.0.6" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | dependencies = [ 512 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 513 | ] 514 | 515 | [[package]] 516 | name = "quote" 517 | version = "0.6.13" 518 | source = "registry+https://github.com/rust-lang/crates.io-index" 519 | dependencies = [ 520 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 521 | ] 522 | 523 | [[package]] 524 | name = "quote" 525 | version = "1.0.2" 526 | source = "registry+https://github.com/rust-lang/crates.io-index" 527 | dependencies = [ 528 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 529 | ] 530 | 531 | [[package]] 532 | name = "redox_syscall" 533 | version = "0.1.56" 534 | source = "registry+https://github.com/rust-lang/crates.io-index" 535 | 536 | [[package]] 537 | name = "rustc-demangle" 538 | version = "0.1.16" 539 | source = "registry+https://github.com/rust-lang/crates.io-index" 540 | 541 | [[package]] 542 | name = "rustc_version" 543 | version = "0.2.3" 544 | source = "registry+https://github.com/rust-lang/crates.io-index" 545 | dependencies = [ 546 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 547 | ] 548 | 549 | [[package]] 550 | name = "ryu" 551 | version = "1.0.2" 552 | source = "registry+https://github.com/rust-lang/crates.io-index" 553 | 554 | [[package]] 555 | name = "scopeguard" 556 | version = "1.0.0" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | 559 | [[package]] 560 | name = "semver" 561 | version = "0.9.0" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | dependencies = [ 564 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 565 | ] 566 | 567 | [[package]] 568 | name = "semver-parser" 569 | version = "0.7.0" 570 | source = "registry+https://github.com/rust-lang/crates.io-index" 571 | 572 | [[package]] 573 | name = "serde" 574 | version = "1.0.104" 575 | source = "registry+https://github.com/rust-lang/crates.io-index" 576 | 577 | [[package]] 578 | name = "serde_derive" 579 | version = "1.0.104" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | dependencies = [ 582 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 583 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 584 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 585 | ] 586 | 587 | [[package]] 588 | name = "serde_json" 589 | version = "1.0.44" 590 | source = "registry+https://github.com/rust-lang/crates.io-index" 591 | dependencies = [ 592 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 593 | "ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 594 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 595 | ] 596 | 597 | [[package]] 598 | name = "slab" 599 | version = "0.4.2" 600 | source = "registry+https://github.com/rust-lang/crates.io-index" 601 | 602 | [[package]] 603 | name = "smallvec" 604 | version = "0.6.13" 605 | source = "registry+https://github.com/rust-lang/crates.io-index" 606 | dependencies = [ 607 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 608 | ] 609 | 610 | [[package]] 611 | name = "string" 612 | version = "0.2.1" 613 | source = "registry+https://github.com/rust-lang/crates.io-index" 614 | dependencies = [ 615 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 616 | ] 617 | 618 | [[package]] 619 | name = "syn" 620 | version = "0.15.44" 621 | source = "registry+https://github.com/rust-lang/crates.io-index" 622 | dependencies = [ 623 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 624 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 625 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 626 | ] 627 | 628 | [[package]] 629 | name = "syn" 630 | version = "1.0.11" 631 | source = "registry+https://github.com/rust-lang/crates.io-index" 632 | dependencies = [ 633 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 634 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 635 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 636 | ] 637 | 638 | [[package]] 639 | name = "synstructure" 640 | version = "0.10.2" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | dependencies = [ 643 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 644 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 645 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 646 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 647 | ] 648 | 649 | [[package]] 650 | name = "synstructure" 651 | version = "0.12.3" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | dependencies = [ 654 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 655 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 656 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 657 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 658 | ] 659 | 660 | [[package]] 661 | name = "test-func" 662 | version = "0.1.0" 663 | dependencies = [ 664 | "lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 665 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 666 | ] 667 | 668 | [[package]] 669 | name = "time" 670 | version = "0.1.42" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | dependencies = [ 673 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 674 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 675 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 676 | ] 677 | 678 | [[package]] 679 | name = "tokio" 680 | version = "0.1.22" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | dependencies = [ 683 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 684 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 685 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 686 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 687 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 688 | "tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 689 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 691 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 692 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 693 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 694 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 695 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 696 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 697 | "tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 698 | "tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 699 | ] 700 | 701 | [[package]] 702 | name = "tokio-buf" 703 | version = "0.1.1" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | dependencies = [ 706 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 707 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 708 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 709 | ] 710 | 711 | [[package]] 712 | name = "tokio-codec" 713 | version = "0.1.1" 714 | source = "registry+https://github.com/rust-lang/crates.io-index" 715 | dependencies = [ 716 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 717 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 718 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 719 | ] 720 | 721 | [[package]] 722 | name = "tokio-current-thread" 723 | version = "0.1.6" 724 | source = "registry+https://github.com/rust-lang/crates.io-index" 725 | dependencies = [ 726 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 727 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 728 | ] 729 | 730 | [[package]] 731 | name = "tokio-executor" 732 | version = "0.1.9" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | dependencies = [ 735 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 736 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 737 | ] 738 | 739 | [[package]] 740 | name = "tokio-fs" 741 | version = "0.1.6" 742 | source = "registry+https://github.com/rust-lang/crates.io-index" 743 | dependencies = [ 744 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 745 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 746 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 747 | ] 748 | 749 | [[package]] 750 | name = "tokio-io" 751 | version = "0.1.12" 752 | source = "registry+https://github.com/rust-lang/crates.io-index" 753 | dependencies = [ 754 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 755 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 756 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 757 | ] 758 | 759 | [[package]] 760 | name = "tokio-reactor" 761 | version = "0.1.11" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | dependencies = [ 764 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 766 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 767 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 768 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 769 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 770 | "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 771 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 772 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 773 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 774 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 775 | ] 776 | 777 | [[package]] 778 | name = "tokio-sync" 779 | version = "0.1.7" 780 | source = "registry+https://github.com/rust-lang/crates.io-index" 781 | dependencies = [ 782 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 783 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 784 | ] 785 | 786 | [[package]] 787 | name = "tokio-tcp" 788 | version = "0.1.3" 789 | source = "registry+https://github.com/rust-lang/crates.io-index" 790 | dependencies = [ 791 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 792 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 793 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 794 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 795 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 796 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 797 | ] 798 | 799 | [[package]] 800 | name = "tokio-threadpool" 801 | version = "0.1.17" 802 | source = "registry+https://github.com/rust-lang/crates.io-index" 803 | dependencies = [ 804 | "crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 805 | "crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 806 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 807 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 808 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 809 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 810 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 811 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 813 | ] 814 | 815 | [[package]] 816 | name = "tokio-timer" 817 | version = "0.2.12" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | dependencies = [ 820 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 821 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 822 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 823 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 824 | ] 825 | 826 | [[package]] 827 | name = "tokio-udp" 828 | version = "0.1.5" 829 | source = "registry+https://github.com/rust-lang/crates.io-index" 830 | dependencies = [ 831 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 832 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 833 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 834 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 835 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 836 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 837 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 838 | ] 839 | 840 | [[package]] 841 | name = "tokio-uds" 842 | version = "0.2.5" 843 | source = "registry+https://github.com/rust-lang/crates.io-index" 844 | dependencies = [ 845 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 846 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 847 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 848 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 849 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 850 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 851 | "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", 852 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 853 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 854 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 855 | ] 856 | 857 | [[package]] 858 | name = "try-lock" 859 | version = "0.2.2" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | 862 | [[package]] 863 | name = "unicode-xid" 864 | version = "0.1.0" 865 | source = "registry+https://github.com/rust-lang/crates.io-index" 866 | 867 | [[package]] 868 | name = "unicode-xid" 869 | version = "0.2.0" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | 872 | [[package]] 873 | name = "want" 874 | version = "0.2.0" 875 | source = "registry+https://github.com/rust-lang/crates.io-index" 876 | dependencies = [ 877 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 878 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 879 | "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 880 | ] 881 | 882 | [[package]] 883 | name = "winapi" 884 | version = "0.2.8" 885 | source = "registry+https://github.com/rust-lang/crates.io-index" 886 | 887 | [[package]] 888 | name = "winapi" 889 | version = "0.3.8" 890 | source = "registry+https://github.com/rust-lang/crates.io-index" 891 | dependencies = [ 892 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 893 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 894 | ] 895 | 896 | [[package]] 897 | name = "winapi-build" 898 | version = "0.1.1" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | 901 | [[package]] 902 | name = "winapi-i686-pc-windows-gnu" 903 | version = "0.4.0" 904 | source = "registry+https://github.com/rust-lang/crates.io-index" 905 | 906 | [[package]] 907 | name = "winapi-x86_64-pc-windows-gnu" 908 | version = "0.4.0" 909 | source = "registry+https://github.com/rust-lang/crates.io-index" 910 | 911 | [[package]] 912 | name = "ws2_32-sys" 913 | version = "0.2.1" 914 | source = "registry+https://github.com/rust-lang/crates.io-index" 915 | dependencies = [ 916 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 917 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 918 | ] 919 | 920 | [metadata] 921 | "checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" 922 | "checksum backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)" = "924c76597f0d9ca25d762c25a4d369d51267536465dc5064bdf0eb073ed477ea" 923 | "checksum backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)" = "5d6575f128516de27e3ce99689419835fce9643a9b215a14d2b5b685be018491" 924 | "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 925 | "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" 926 | "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" 927 | "checksum cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)" = "f52a465a666ca3d838ebbf08b241383421412fe7ebb463527bba275526d89f76" 928 | "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 929 | "checksum chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "31850b4a4d6bae316f7a09e691c944c28299298837edc0a03f755618c23cbc01" 930 | "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 931 | "checksum crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3aa945d63861bfe624b55d153a39684da1e8c0bc8fba932f7ee3a3c16cea3ca" 932 | "checksum crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5064ebdbf05ce3cb95e45c8b086f72263f4166b29b97f6baff7ef7fe047b55ac" 933 | "checksum crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b" 934 | "checksum crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6" 935 | "checksum crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce446db02cdc3165b94ae73111e570793400d0794e46125cc4056c81cbb039f4" 936 | "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" 937 | "checksum failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "f8273f13c977665c5db7eb2b99ae520952fe5ac831ae4cd09d80c4c7042b5ed9" 938 | "checksum failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0bc225b78e0391e4b8683440bf2e63c2deeeb2ce5189eab46e2b68c6d3725d08" 939 | "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" 940 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 941 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 942 | "checksum futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)" = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef" 943 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 944 | "checksum h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462" 945 | "checksum hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f629dc602392d3ec14bfc8a09b5e644d7ffd725102b48b81e59f90f2633621d7" 946 | "checksum http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" 947 | "checksum http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d" 948 | "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 949 | "checksum hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)" = "9dbe6ed1438e1f8ad955a4701e9a944938e9519f6888d12d8558b645e247d5f6" 950 | "checksum indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712d7b3ea5827fcb9d4fda14bf4da5f136f0db2ae9c8f4bd4e2d1c6fde4e6db2" 951 | "checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 952 | "checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f" 953 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 954 | "checksum lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "077b8819fe6998266342efdc5154192551143f390ab758007cc7421992e61b07" 955 | "checksum lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f5e64758b587f1d07b6ca4814a3bc0f3db48c89cc3c895db43a23c690855b370" 956 | "checksum lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "da1cb59e060c1068cfa386b58c202a4381c509ace85a1eadab505164f0563ca5" 957 | "checksum lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "93b63ea3688df164aaa5643c5f3291cc481366d624729deb3c4dc85ee65ac20a" 958 | "checksum lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "38fa619ec6f1ee2371a109683d251035c83f01b8ffc10f4aa46de821836a7baf" 959 | "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 960 | "checksum libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)" = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558" 961 | "checksum lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e57b3997725d2b60dbec1297f6c2e2957cc383db1cebd6be812163f969c7d586" 962 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 963 | "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" 964 | "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9" 965 | "checksum mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f" 966 | "checksum mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125" 967 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 968 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" 969 | "checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" 970 | "checksum num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c81ffc11c212fa327657cb19dd85eb7419e163b5b076bede2bdb5c974c07e4" 971 | "checksum num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "76dac5ed2a876980778b8b85f75a71b6cbf0db0b1232ee12f826bccb00d09d72" 972 | "checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" 973 | "checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" 974 | "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 975 | "checksum proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27" 976 | "checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 977 | "checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe" 978 | "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 979 | "checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" 980 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 981 | "checksum ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bfa8506c1de11c9c4e4c38863ccbe02a305c8188e85a05a784c9e11e1c3910c8" 982 | "checksum scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b42e15e59b18a828bbf5c58ea01debb36b9b096346de35d941dcb89009f24a0d" 983 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 984 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 985 | "checksum serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "414115f25f818d7dfccec8ee535d76949ae78584fc4f79a6f45a904bf8ab4449" 986 | "checksum serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "128f9e303a5a29922045a830221b8f78ec74a5f544944f3d5984f8ec3895ef64" 987 | "checksum serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)" = "48c575e0cc52bdd09b47f330f646cf59afc586e9c4e3ccd6fc1f625b8ea1dad7" 988 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 989 | "checksum smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6" 990 | "checksum string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d" 991 | "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 992 | "checksum syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "dff0acdb207ae2fe6d5976617f887eb1e35a2ba52c13c7234c790960cdad9238" 993 | "checksum synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f" 994 | "checksum synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "67656ea1dc1b41b1451851562ea232ec2e5a80242139f7e679ceccfb5d61f545" 995 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" 996 | "checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" 997 | "checksum tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" 998 | "checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f" 999 | "checksum tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "d16217cad7f1b840c5a97dfb3c43b0c871fef423a6e8d2118c604e843662a443" 1000 | "checksum tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "ca6df436c42b0c3330a82d855d2ef017cd793090ad550a6bc2184f4b933532ab" 1001 | "checksum tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "3fe6dc22b08d6993916647d108a1a7d15b9cd29c4f4496c62b92c45b5041b7af" 1002 | "checksum tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5090db468dad16e1a7a54c8c67280c5e4b544f3d3e018f0b913b400261f85926" 1003 | "checksum tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "6732fe6b53c8d11178dcb77ac6d9682af27fc6d4cb87789449152e5377377146" 1004 | "checksum tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "d06554cce1ae4a50f42fba8023918afa931413aded705b560e29600ccf7c6d76" 1005 | "checksum tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1d14b10654be682ac43efee27401d792507e30fd8d26389e1da3b185de2e4119" 1006 | "checksum tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f0c32ffea4827978e9aa392d2f743d973c1dfa3730a2ed3f22ce1e6984da848c" 1007 | "checksum tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "1739638e364e558128461fc1ad84d997702c8e31c2e6b18fb99842268199e827" 1008 | "checksum tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f02298505547f73e60f568359ef0d016d5acd6e830ab9bc7c4a5b3403440121b" 1009 | "checksum tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "037ffc3ba0e12a0ab4aca92e5234e0dedeb48fddf6ccd260f1f150a36a9f2445" 1010 | "checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" 1011 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 1012 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 1013 | "checksum want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" 1014 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1015 | "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" 1016 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1017 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1018 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1019 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1020 | -------------------------------------------------------------------------------- /tests/test-func/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "test-func" 3 | version = "0.1.0" 4 | authors = ["softprops "] 5 | edition = "2018" 6 | 7 | # users don't have to do this 8 | # but when they do, the builder packaging still work 9 | [[bin]] 10 | name = "bootstrap" 11 | path = "src/main.rs" 12 | 13 | [dependencies] 14 | lambda_runtime = "0.2" 15 | serde_json = "1.0" -------------------------------------------------------------------------------- /tests/test-func/expected-output.json: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | -------------------------------------------------------------------------------- /tests/test-func/src/main.rs: -------------------------------------------------------------------------------- 1 | use lambda_runtime::{error::HandlerError, lambda, Context}; 2 | use serde_json::Value; 3 | 4 | fn main() { 5 | lambda!(handler) 6 | } 7 | 8 | fn handler( 9 | event: Value, 10 | _: Context, 11 | ) -> Result { 12 | Ok(event) 13 | } -------------------------------------------------------------------------------- /tests/test-func/test-event.json: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | -------------------------------------------------------------------------------- /tests/test-multi-func/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "autocfg" 5 | version = "0.1.7" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | 8 | [[package]] 9 | name = "backtrace" 10 | version = "0.3.40" 11 | source = "registry+https://github.com/rust-lang/crates.io-index" 12 | dependencies = [ 13 | "backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", 14 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 15 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 16 | "rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 17 | ] 18 | 19 | [[package]] 20 | name = "backtrace-sys" 21 | version = "0.1.32" 22 | source = "registry+https://github.com/rust-lang/crates.io-index" 23 | dependencies = [ 24 | "cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)", 25 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 26 | ] 27 | 28 | [[package]] 29 | name = "bitflags" 30 | version = "1.2.1" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | 33 | [[package]] 34 | name = "byteorder" 35 | version = "1.3.2" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | 38 | [[package]] 39 | name = "bytes" 40 | version = "0.4.12" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | dependencies = [ 43 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 44 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 45 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 46 | ] 47 | 48 | [[package]] 49 | name = "cc" 50 | version = "1.0.48" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | 53 | [[package]] 54 | name = "cfg-if" 55 | version = "0.1.10" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | 58 | [[package]] 59 | name = "chrono" 60 | version = "0.4.10" 61 | source = "registry+https://github.com/rust-lang/crates.io-index" 62 | dependencies = [ 63 | "num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)", 64 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 65 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 66 | ] 67 | 68 | [[package]] 69 | name = "cloudabi" 70 | version = "0.0.3" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | dependencies = [ 73 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 74 | ] 75 | 76 | [[package]] 77 | name = "crossbeam-deque" 78 | version = "0.7.2" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | dependencies = [ 81 | "crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 82 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 83 | ] 84 | 85 | [[package]] 86 | name = "crossbeam-epoch" 87 | version = "0.8.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | dependencies = [ 90 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 91 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 92 | "crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 94 | "memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 96 | ] 97 | 98 | [[package]] 99 | name = "crossbeam-queue" 100 | version = "0.1.2" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | dependencies = [ 103 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 104 | ] 105 | 106 | [[package]] 107 | name = "crossbeam-utils" 108 | version = "0.6.6" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | dependencies = [ 111 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 113 | ] 114 | 115 | [[package]] 116 | name = "crossbeam-utils" 117 | version = "0.7.0" 118 | source = "registry+https://github.com/rust-lang/crates.io-index" 119 | dependencies = [ 120 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 121 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 122 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 123 | ] 124 | 125 | [[package]] 126 | name = "either" 127 | version = "1.5.3" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | 130 | [[package]] 131 | name = "failure" 132 | version = "0.1.6" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | dependencies = [ 135 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 136 | "failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 137 | ] 138 | 139 | [[package]] 140 | name = "failure_derive" 141 | version = "0.1.6" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | dependencies = [ 144 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 145 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 146 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 147 | "synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)", 148 | ] 149 | 150 | [[package]] 151 | name = "fnv" 152 | version = "1.0.6" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | 155 | [[package]] 156 | name = "fuchsia-zircon" 157 | version = "0.3.3" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | dependencies = [ 160 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 162 | ] 163 | 164 | [[package]] 165 | name = "fuchsia-zircon-sys" 166 | version = "0.3.3" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | 169 | [[package]] 170 | name = "futures" 171 | version = "0.1.29" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | 174 | [[package]] 175 | name = "futures-cpupool" 176 | version = "0.1.8" 177 | source = "registry+https://github.com/rust-lang/crates.io-index" 178 | dependencies = [ 179 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 180 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 181 | ] 182 | 183 | [[package]] 184 | name = "h2" 185 | version = "0.1.26" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | dependencies = [ 188 | "byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 189 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 190 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 191 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 192 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 197 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 198 | ] 199 | 200 | [[package]] 201 | name = "hermit-abi" 202 | version = "0.1.5" 203 | source = "registry+https://github.com/rust-lang/crates.io-index" 204 | dependencies = [ 205 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 206 | ] 207 | 208 | [[package]] 209 | name = "http" 210 | version = "0.1.21" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | dependencies = [ 213 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 216 | ] 217 | 218 | [[package]] 219 | name = "http-body" 220 | version = "0.1.0" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | dependencies = [ 223 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 224 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 225 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 226 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 227 | ] 228 | 229 | [[package]] 230 | name = "httparse" 231 | version = "1.3.4" 232 | source = "registry+https://github.com/rust-lang/crates.io-index" 233 | 234 | [[package]] 235 | name = "hyper" 236 | version = "0.12.35" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | dependencies = [ 239 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 241 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 242 | "h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", 243 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 244 | "http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 245 | "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 246 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 247 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 248 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 251 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 252 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 253 | "tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 254 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 255 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 256 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 257 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 258 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 259 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 260 | "want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 261 | ] 262 | 263 | [[package]] 264 | name = "indexmap" 265 | version = "1.3.0" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | dependencies = [ 268 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 269 | ] 270 | 271 | [[package]] 272 | name = "iovec" 273 | version = "0.1.4" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | dependencies = [ 276 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 277 | ] 278 | 279 | [[package]] 280 | name = "itoa" 281 | version = "0.4.4" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | 284 | [[package]] 285 | name = "kernel32-sys" 286 | version = "0.2.2" 287 | source = "registry+https://github.com/rust-lang/crates.io-index" 288 | dependencies = [ 289 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 290 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 291 | ] 292 | 293 | [[package]] 294 | name = "lambda_runtime" 295 | version = "0.2.1" 296 | source = "registry+https://github.com/rust-lang/crates.io-index" 297 | dependencies = [ 298 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 299 | "lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 300 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 301 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 302 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 303 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 304 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 305 | ] 306 | 307 | [[package]] 308 | name = "lambda_runtime_client" 309 | version = "0.2.2" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | dependencies = [ 312 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 313 | "http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", 314 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 315 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 316 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 317 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 318 | "serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 319 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 320 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 321 | ] 322 | 323 | [[package]] 324 | name = "lambda_runtime_core" 325 | version = "0.1.2" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)", 332 | "lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 333 | "lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 334 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 335 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 336 | "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", 337 | ] 338 | 339 | [[package]] 340 | name = "lambda_runtime_errors" 341 | version = "0.1.1" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | dependencies = [ 344 | "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 345 | "lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 347 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 348 | ] 349 | 350 | [[package]] 351 | name = "lambda_runtime_errors_derive" 352 | version = "0.1.1" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | dependencies = [ 355 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 356 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 358 | "synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 359 | ] 360 | 361 | [[package]] 362 | name = "lazy_static" 363 | version = "1.4.0" 364 | source = "registry+https://github.com/rust-lang/crates.io-index" 365 | 366 | [[package]] 367 | name = "libc" 368 | version = "0.2.66" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | 371 | [[package]] 372 | name = "lock_api" 373 | version = "0.3.2" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | dependencies = [ 376 | "scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 377 | ] 378 | 379 | [[package]] 380 | name = "log" 381 | version = "0.4.8" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | dependencies = [ 384 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 385 | ] 386 | 387 | [[package]] 388 | name = "maybe-uninit" 389 | version = "2.0.0" 390 | source = "registry+https://github.com/rust-lang/crates.io-index" 391 | 392 | [[package]] 393 | name = "memoffset" 394 | version = "0.5.3" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | dependencies = [ 397 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 398 | ] 399 | 400 | [[package]] 401 | name = "mio" 402 | version = "0.6.21" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | dependencies = [ 405 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 406 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 407 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 408 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 409 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 414 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 415 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 416 | ] 417 | 418 | [[package]] 419 | name = "mio-uds" 420 | version = "0.6.7" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | dependencies = [ 423 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 424 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 425 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 426 | ] 427 | 428 | [[package]] 429 | name = "miow" 430 | version = "0.2.1" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | dependencies = [ 433 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 434 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 435 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 436 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 437 | ] 438 | 439 | [[package]] 440 | name = "net2" 441 | version = "0.2.33" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | dependencies = [ 444 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 445 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 446 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 447 | ] 448 | 449 | [[package]] 450 | name = "num-integer" 451 | version = "0.1.41" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | dependencies = [ 454 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 456 | ] 457 | 458 | [[package]] 459 | name = "num-traits" 460 | version = "0.2.10" 461 | source = "registry+https://github.com/rust-lang/crates.io-index" 462 | dependencies = [ 463 | "autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 464 | ] 465 | 466 | [[package]] 467 | name = "num_cpus" 468 | version = "1.11.1" 469 | source = "registry+https://github.com/rust-lang/crates.io-index" 470 | dependencies = [ 471 | "hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 472 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 473 | ] 474 | 475 | [[package]] 476 | name = "parking_lot" 477 | version = "0.9.0" 478 | source = "registry+https://github.com/rust-lang/crates.io-index" 479 | dependencies = [ 480 | "lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 481 | "parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", 482 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 483 | ] 484 | 485 | [[package]] 486 | name = "parking_lot_core" 487 | version = "0.6.2" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | dependencies = [ 490 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 492 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 493 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 494 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 495 | "smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 496 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 497 | ] 498 | 499 | [[package]] 500 | name = "proc-macro2" 501 | version = "0.4.30" 502 | source = "registry+https://github.com/rust-lang/crates.io-index" 503 | dependencies = [ 504 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 505 | ] 506 | 507 | [[package]] 508 | name = "proc-macro2" 509 | version = "1.0.6" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | dependencies = [ 512 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 513 | ] 514 | 515 | [[package]] 516 | name = "quote" 517 | version = "0.6.13" 518 | source = "registry+https://github.com/rust-lang/crates.io-index" 519 | dependencies = [ 520 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 521 | ] 522 | 523 | [[package]] 524 | name = "quote" 525 | version = "1.0.2" 526 | source = "registry+https://github.com/rust-lang/crates.io-index" 527 | dependencies = [ 528 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 529 | ] 530 | 531 | [[package]] 532 | name = "redox_syscall" 533 | version = "0.1.56" 534 | source = "registry+https://github.com/rust-lang/crates.io-index" 535 | 536 | [[package]] 537 | name = "rustc-demangle" 538 | version = "0.1.16" 539 | source = "registry+https://github.com/rust-lang/crates.io-index" 540 | 541 | [[package]] 542 | name = "rustc_version" 543 | version = "0.2.3" 544 | source = "registry+https://github.com/rust-lang/crates.io-index" 545 | dependencies = [ 546 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 547 | ] 548 | 549 | [[package]] 550 | name = "ryu" 551 | version = "1.0.2" 552 | source = "registry+https://github.com/rust-lang/crates.io-index" 553 | 554 | [[package]] 555 | name = "scopeguard" 556 | version = "1.0.0" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | 559 | [[package]] 560 | name = "semver" 561 | version = "0.9.0" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | dependencies = [ 564 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 565 | ] 566 | 567 | [[package]] 568 | name = "semver-parser" 569 | version = "0.7.0" 570 | source = "registry+https://github.com/rust-lang/crates.io-index" 571 | 572 | [[package]] 573 | name = "serde" 574 | version = "1.0.104" 575 | source = "registry+https://github.com/rust-lang/crates.io-index" 576 | 577 | [[package]] 578 | name = "serde_derive" 579 | version = "1.0.104" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | dependencies = [ 582 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 583 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 584 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 585 | ] 586 | 587 | [[package]] 588 | name = "serde_json" 589 | version = "1.0.44" 590 | source = "registry+https://github.com/rust-lang/crates.io-index" 591 | dependencies = [ 592 | "itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 593 | "ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 594 | "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", 595 | ] 596 | 597 | [[package]] 598 | name = "slab" 599 | version = "0.4.2" 600 | source = "registry+https://github.com/rust-lang/crates.io-index" 601 | 602 | [[package]] 603 | name = "smallvec" 604 | version = "0.6.13" 605 | source = "registry+https://github.com/rust-lang/crates.io-index" 606 | dependencies = [ 607 | "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 608 | ] 609 | 610 | [[package]] 611 | name = "string" 612 | version = "0.2.1" 613 | source = "registry+https://github.com/rust-lang/crates.io-index" 614 | dependencies = [ 615 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 616 | ] 617 | 618 | [[package]] 619 | name = "syn" 620 | version = "0.15.44" 621 | source = "registry+https://github.com/rust-lang/crates.io-index" 622 | dependencies = [ 623 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 624 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 625 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 626 | ] 627 | 628 | [[package]] 629 | name = "syn" 630 | version = "1.0.11" 631 | source = "registry+https://github.com/rust-lang/crates.io-index" 632 | dependencies = [ 633 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 634 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 635 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 636 | ] 637 | 638 | [[package]] 639 | name = "synstructure" 640 | version = "0.10.2" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | dependencies = [ 643 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", 644 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 645 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", 646 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 647 | ] 648 | 649 | [[package]] 650 | name = "synstructure" 651 | version = "0.12.3" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | dependencies = [ 654 | "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 655 | "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 656 | "syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)", 657 | "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 658 | ] 659 | 660 | [[package]] 661 | name = "test-func" 662 | version = "0.1.0" 663 | dependencies = [ 664 | "lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 665 | "serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)", 666 | ] 667 | 668 | [[package]] 669 | name = "time" 670 | version = "0.1.42" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | dependencies = [ 673 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 674 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 675 | "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 676 | ] 677 | 678 | [[package]] 679 | name = "tokio" 680 | version = "0.1.22" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | dependencies = [ 683 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 684 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 685 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 686 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 687 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 688 | "tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 689 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 691 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 692 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 693 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 694 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 695 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 696 | "tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 697 | "tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 698 | "tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 699 | ] 700 | 701 | [[package]] 702 | name = "tokio-buf" 703 | version = "0.1.1" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | dependencies = [ 706 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 707 | "either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 708 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 709 | ] 710 | 711 | [[package]] 712 | name = "tokio-codec" 713 | version = "0.1.1" 714 | source = "registry+https://github.com/rust-lang/crates.io-index" 715 | dependencies = [ 716 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 717 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 718 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 719 | ] 720 | 721 | [[package]] 722 | name = "tokio-current-thread" 723 | version = "0.1.6" 724 | source = "registry+https://github.com/rust-lang/crates.io-index" 725 | dependencies = [ 726 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 727 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 728 | ] 729 | 730 | [[package]] 731 | name = "tokio-executor" 732 | version = "0.1.9" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | dependencies = [ 735 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 736 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 737 | ] 738 | 739 | [[package]] 740 | name = "tokio-fs" 741 | version = "0.1.6" 742 | source = "registry+https://github.com/rust-lang/crates.io-index" 743 | dependencies = [ 744 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 745 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 746 | "tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 747 | ] 748 | 749 | [[package]] 750 | name = "tokio-io" 751 | version = "0.1.12" 752 | source = "registry+https://github.com/rust-lang/crates.io-index" 753 | dependencies = [ 754 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 755 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 756 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 757 | ] 758 | 759 | [[package]] 760 | name = "tokio-reactor" 761 | version = "0.1.11" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | dependencies = [ 764 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 766 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 767 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 768 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 769 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 770 | "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 771 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 772 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 773 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 774 | "tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 775 | ] 776 | 777 | [[package]] 778 | name = "tokio-sync" 779 | version = "0.1.7" 780 | source = "registry+https://github.com/rust-lang/crates.io-index" 781 | dependencies = [ 782 | "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", 783 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 784 | ] 785 | 786 | [[package]] 787 | name = "tokio-tcp" 788 | version = "0.1.3" 789 | source = "registry+https://github.com/rust-lang/crates.io-index" 790 | dependencies = [ 791 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 792 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 793 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 794 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 795 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 796 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 797 | ] 798 | 799 | [[package]] 800 | name = "tokio-threadpool" 801 | version = "0.1.17" 802 | source = "registry+https://github.com/rust-lang/crates.io-index" 803 | dependencies = [ 804 | "crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 805 | "crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 806 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 807 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 808 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 809 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 810 | "num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)", 811 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 813 | ] 814 | 815 | [[package]] 816 | name = "tokio-timer" 817 | version = "0.2.12" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | dependencies = [ 820 | "crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", 821 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 822 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 823 | "tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 824 | ] 825 | 826 | [[package]] 827 | name = "tokio-udp" 828 | version = "0.1.5" 829 | source = "registry+https://github.com/rust-lang/crates.io-index" 830 | dependencies = [ 831 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 832 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 833 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 834 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 835 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 836 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 837 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 838 | ] 839 | 840 | [[package]] 841 | name = "tokio-uds" 842 | version = "0.2.5" 843 | source = "registry+https://github.com/rust-lang/crates.io-index" 844 | dependencies = [ 845 | "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 846 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 847 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 848 | "libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)", 849 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 850 | "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 851 | "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", 852 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 853 | "tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 854 | "tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 855 | ] 856 | 857 | [[package]] 858 | name = "try-lock" 859 | version = "0.2.2" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | 862 | [[package]] 863 | name = "unicode-xid" 864 | version = "0.1.0" 865 | source = "registry+https://github.com/rust-lang/crates.io-index" 866 | 867 | [[package]] 868 | name = "unicode-xid" 869 | version = "0.2.0" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | 872 | [[package]] 873 | name = "want" 874 | version = "0.2.0" 875 | source = "registry+https://github.com/rust-lang/crates.io-index" 876 | dependencies = [ 877 | "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", 878 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 879 | "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 880 | ] 881 | 882 | [[package]] 883 | name = "winapi" 884 | version = "0.2.8" 885 | source = "registry+https://github.com/rust-lang/crates.io-index" 886 | 887 | [[package]] 888 | name = "winapi" 889 | version = "0.3.8" 890 | source = "registry+https://github.com/rust-lang/crates.io-index" 891 | dependencies = [ 892 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 893 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 894 | ] 895 | 896 | [[package]] 897 | name = "winapi-build" 898 | version = "0.1.1" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | 901 | [[package]] 902 | name = "winapi-i686-pc-windows-gnu" 903 | version = "0.4.0" 904 | source = "registry+https://github.com/rust-lang/crates.io-index" 905 | 906 | [[package]] 907 | name = "winapi-x86_64-pc-windows-gnu" 908 | version = "0.4.0" 909 | source = "registry+https://github.com/rust-lang/crates.io-index" 910 | 911 | [[package]] 912 | name = "ws2_32-sys" 913 | version = "0.2.1" 914 | source = "registry+https://github.com/rust-lang/crates.io-index" 915 | dependencies = [ 916 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 917 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 918 | ] 919 | 920 | [metadata] 921 | "checksum autocfg 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" 922 | "checksum backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)" = "924c76597f0d9ca25d762c25a4d369d51267536465dc5064bdf0eb073ed477ea" 923 | "checksum backtrace-sys 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)" = "5d6575f128516de27e3ce99689419835fce9643a9b215a14d2b5b685be018491" 924 | "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 925 | "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" 926 | "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" 927 | "checksum cc 1.0.48 (registry+https://github.com/rust-lang/crates.io-index)" = "f52a465a666ca3d838ebbf08b241383421412fe7ebb463527bba275526d89f76" 928 | "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 929 | "checksum chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "31850b4a4d6bae316f7a09e691c944c28299298837edc0a03f755618c23cbc01" 930 | "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 931 | "checksum crossbeam-deque 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3aa945d63861bfe624b55d153a39684da1e8c0bc8fba932f7ee3a3c16cea3ca" 932 | "checksum crossbeam-epoch 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5064ebdbf05ce3cb95e45c8b086f72263f4166b29b97f6baff7ef7fe047b55ac" 933 | "checksum crossbeam-queue 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7c979cd6cfe72335896575c6b5688da489e420d36a27a0b9eb0c73db574b4a4b" 934 | "checksum crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6" 935 | "checksum crossbeam-utils 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ce446db02cdc3165b94ae73111e570793400d0794e46125cc4056c81cbb039f4" 936 | "checksum either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" 937 | "checksum failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "f8273f13c977665c5db7eb2b99ae520952fe5ac831ae4cd09d80c4c7042b5ed9" 938 | "checksum failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0bc225b78e0391e4b8683440bf2e63c2deeeb2ce5189eab46e2b68c6d3725d08" 939 | "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" 940 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 941 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 942 | "checksum futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)" = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef" 943 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 944 | "checksum h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462" 945 | "checksum hermit-abi 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f629dc602392d3ec14bfc8a09b5e644d7ffd725102b48b81e59f90f2633621d7" 946 | "checksum http 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" 947 | "checksum http-body 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d" 948 | "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 949 | "checksum hyper 0.12.35 (registry+https://github.com/rust-lang/crates.io-index)" = "9dbe6ed1438e1f8ad955a4701e9a944938e9519f6888d12d8558b645e247d5f6" 950 | "checksum indexmap 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712d7b3ea5827fcb9d4fda14bf4da5f136f0db2ae9c8f4bd4e2d1c6fde4e6db2" 951 | "checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 952 | "checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f" 953 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 954 | "checksum lambda_runtime 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "077b8819fe6998266342efdc5154192551143f390ab758007cc7421992e61b07" 955 | "checksum lambda_runtime_client 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f5e64758b587f1d07b6ca4814a3bc0f3db48c89cc3c895db43a23c690855b370" 956 | "checksum lambda_runtime_core 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "da1cb59e060c1068cfa386b58c202a4381c509ace85a1eadab505164f0563ca5" 957 | "checksum lambda_runtime_errors 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "93b63ea3688df164aaa5643c5f3291cc481366d624729deb3c4dc85ee65ac20a" 958 | "checksum lambda_runtime_errors_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "38fa619ec6f1ee2371a109683d251035c83f01b8ffc10f4aa46de821836a7baf" 959 | "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 960 | "checksum libc 0.2.66 (registry+https://github.com/rust-lang/crates.io-index)" = "d515b1f41455adea1313a4a2ac8a8a477634fbae63cc6100e3aebb207ce61558" 961 | "checksum lock_api 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e57b3997725d2b60dbec1297f6c2e2957cc383db1cebd6be812163f969c7d586" 962 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 963 | "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" 964 | "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9" 965 | "checksum mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f" 966 | "checksum mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125" 967 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 968 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" 969 | "checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" 970 | "checksum num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c81ffc11c212fa327657cb19dd85eb7419e163b5b076bede2bdb5c974c07e4" 971 | "checksum num_cpus 1.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "76dac5ed2a876980778b8b85f75a71b6cbf0db0b1232ee12f826bccb00d09d72" 972 | "checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" 973 | "checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" 974 | "checksum proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" 975 | "checksum proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9c9e470a8dc4aeae2dee2f335e8f533e2d4b347e1434e5671afc49b054592f27" 976 | "checksum quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" 977 | "checksum quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe" 978 | "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 979 | "checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" 980 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 981 | "checksum ryu 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bfa8506c1de11c9c4e4c38863ccbe02a305c8188e85a05a784c9e11e1c3910c8" 982 | "checksum scopeguard 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b42e15e59b18a828bbf5c58ea01debb36b9b096346de35d941dcb89009f24a0d" 983 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 984 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 985 | "checksum serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "414115f25f818d7dfccec8ee535d76949ae78584fc4f79a6f45a904bf8ab4449" 986 | "checksum serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "128f9e303a5a29922045a830221b8f78ec74a5f544944f3d5984f8ec3895ef64" 987 | "checksum serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)" = "48c575e0cc52bdd09b47f330f646cf59afc586e9c4e3ccd6fc1f625b8ea1dad7" 988 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 989 | "checksum smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6" 990 | "checksum string 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d" 991 | "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" 992 | "checksum syn 1.0.11 (registry+https://github.com/rust-lang/crates.io-index)" = "dff0acdb207ae2fe6d5976617f887eb1e35a2ba52c13c7234c790960cdad9238" 993 | "checksum synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f" 994 | "checksum synstructure 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "67656ea1dc1b41b1451851562ea232ec2e5a80242139f7e679ceccfb5d61f545" 995 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" 996 | "checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" 997 | "checksum tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" 998 | "checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f" 999 | "checksum tokio-current-thread 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "d16217cad7f1b840c5a97dfb3c43b0c871fef423a6e8d2118c604e843662a443" 1000 | "checksum tokio-executor 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "ca6df436c42b0c3330a82d855d2ef017cd793090ad550a6bc2184f4b933532ab" 1001 | "checksum tokio-fs 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "3fe6dc22b08d6993916647d108a1a7d15b9cd29c4f4496c62b92c45b5041b7af" 1002 | "checksum tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5090db468dad16e1a7a54c8c67280c5e4b544f3d3e018f0b913b400261f85926" 1003 | "checksum tokio-reactor 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "6732fe6b53c8d11178dcb77ac6d9682af27fc6d4cb87789449152e5377377146" 1004 | "checksum tokio-sync 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "d06554cce1ae4a50f42fba8023918afa931413aded705b560e29600ccf7c6d76" 1005 | "checksum tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1d14b10654be682ac43efee27401d792507e30fd8d26389e1da3b185de2e4119" 1006 | "checksum tokio-threadpool 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f0c32ffea4827978e9aa392d2f743d973c1dfa3730a2ed3f22ce1e6984da848c" 1007 | "checksum tokio-timer 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "1739638e364e558128461fc1ad84d997702c8e31c2e6b18fb99842268199e827" 1008 | "checksum tokio-udp 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f02298505547f73e60f568359ef0d016d5acd6e830ab9bc7c4a5b3403440121b" 1009 | "checksum tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "037ffc3ba0e12a0ab4aca92e5234e0dedeb48fddf6ccd260f1f150a36a9f2445" 1010 | "checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" 1011 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 1012 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 1013 | "checksum want 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" 1014 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1015 | "checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" 1016 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1017 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1018 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1019 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1020 | -------------------------------------------------------------------------------- /tests/test-multi-func/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = ["foo"] -------------------------------------------------------------------------------- /tests/test-multi-func/expected-output.json: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | -------------------------------------------------------------------------------- /tests/test-multi-func/foo/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "test-func" 3 | version = "0.1.0" 4 | authors = ["softprops "] 5 | edition = "2018" 6 | 7 | [dependencies] 8 | lambda_runtime = "0.2" 9 | serde_json = "1.0" -------------------------------------------------------------------------------- /tests/test-multi-func/foo/src/main.rs: -------------------------------------------------------------------------------- 1 | use lambda_runtime::{error::HandlerError, lambda, Context}; 2 | use serde_json::Value; 3 | 4 | fn main() { 5 | lambda!(handler) 6 | } 7 | 8 | fn handler( 9 | event: Value, 10 | _: Context, 11 | ) -> Result { 12 | Ok(event) 13 | } -------------------------------------------------------------------------------- /tests/test-multi-func/test-event.json: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | -------------------------------------------------------------------------------- /tests/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Directory of the integration test 4 | HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 5 | # Root directory of the repository 6 | DIST=$(cd "$HERE"/..; pwd) 7 | IMAGE=${1:-softprops/lambda-rust} 8 | 9 | source "${HERE}"/bashtest.sh 10 | 11 | # test packaging with a single binary 12 | package_bin() { 13 | rm -rf target/lambda/release > /dev/null 2>&1 14 | docker run --rm \ 15 | -u $(id -u):$(id -g) \ 16 | -e BIN="$1" \ 17 | -v "${PWD}":/code \ 18 | -v "${HOME}"/.cargo/registry:/cargo/registry \ 19 | -v "${HOME}"/.cargo/git:/cargo/git \ 20 | ${IMAGE} && \ 21 | ls target/lambda/release/"${1}".zip > /dev/null 2>&1 && 22 | ls target/lambda/release/output/"${1}"/bootstrap 2>&1 && 23 | ls target/lambda/release/output/"${1}"/bootstrap.debug 2>&1 24 | } 25 | 26 | # test packaging all binaries 27 | package_all() { 28 | rm -rf target/lambda/release > /dev/null 2>&1 29 | docker run --rm \ 30 | -u $(id -u):$(id -g) \ 31 | -v "${PWD}":/code \ 32 | -v "${HOME}"/.cargo/registry:/cargo/registry \ 33 | -v "${HOME}"/.cargo/git:/cargo/git \ 34 | ${IMAGE} && \ 35 | ls target/lambda/release/"${1}".zip > /dev/null 2>&1 && 36 | ls target/lambda/release/output/"${1}"/bootstrap 2>&1 && 37 | ls target/lambda/release/output/"${1}"/bootstrap.debug 2>&1 38 | } 39 | 40 | # test PACKAGE=false flag 41 | compile_without_packaging() { 42 | rm -rf target/lambda/release > /dev/null 2>&1 43 | docker run --rm \ 44 | -u $(id -u):$(id -g) \ 45 | -e PACKAGE=false \ 46 | -v "${PWD}":/code \ 47 | -v "${HOME}"/.cargo/registry:/cargo/registry \ 48 | -v "${HOME}"/.cargo/git:/cargo/git \ 49 | ${IMAGE} && 50 | !(ls target/lambda/release/"${1}".zip > /dev/null 2>&1) && 51 | ls target/lambda/release/output/"${1}"/bootstrap 2>&1 && 52 | ls target/lambda/release/output/"${1}"/bootstrap.debug 2>&1 53 | } 54 | 55 | # test packaging with PROFILE=dev 56 | package_all_dev_profile() { 57 | rm -rf target/lambda/debug > /dev/null 2>&1 58 | docker run --rm \ 59 | -u $(id -u):$(id -g) \ 60 | -e PROFILE=dev \ 61 | -v "${PWD}":/code \ 62 | -v "${HOME}"/.cargo/registry:/cargo/registry \ 63 | -v "${HOME}"/.cargo/git:/cargo/git \ 64 | ${IMAGE} && \ 65 | ls target/lambda/debug/"${1}".zip > /dev/null 2>&1 && 66 | ls target/lambda/release/output/"${1}"/bootstrap 2>&1 && 67 | ls target/lambda/release/output/"${1}"/bootstrap.debug 2>&1 68 | } 69 | 70 | for project in test-func test-multi-func test-func-with-hooks; do 71 | cd "${HERE}"/"${project}" 72 | echo "👩‍🔬 Running tests for $project with image $IMAGE" 73 | 74 | if [[ "$project" == test-multi-func ]]; then 75 | bin_name=test-func 76 | else 77 | bin_name=bootstrap 78 | fi 79 | 80 | # package tests 81 | assert "it packages single bins" package_bin "${bin_name}" 82 | 83 | assert "it packages all bins with dev profile" package_all_dev_profile "${bin_name}" 84 | 85 | assert "it compiles the binaries without zipping when PACKAGE=false" compile_without_packaging "${bin_name}" 86 | 87 | assert "it packages all bins" package_all "${bin_name}" 88 | 89 | # verify packaged artifact by invoking it using the lambdaci "provided.al2" docker image 90 | rm -f output.log > /dev/null 2>&1 91 | rm -f test-out.log > /dev/null 2>&1 92 | rm -rf /tmp/lambda > /dev/null 2>&1 93 | unzip -o \ 94 | target/lambda/release/"${bin_name}".zip \ 95 | -d /tmp/lambda > /dev/null 2>&1 && \ 96 | docker run \ 97 | -i -e DOCKER_LAMBDA_USE_STDIN=1 \ 98 | --rm \ 99 | -v /tmp/lambda:/var/task \ 100 | lambci/lambda:provided.al2 < test-event.json | grep -v RequestId | grep -v '^\W*$' > test-out.log 101 | 102 | assert "when invoked, it produces expected output" diff expected-output.json test-out.log 103 | done 104 | 105 | end_tests 106 | --------------------------------------------------------------------------------