From 285cd1bcf74d3b19335d1502e0fe8b3aa37cdab5 Mon Sep 17 00:00:00 2001 From: Denis Kolodin Date: Tue, 22 Aug 2017 21:44:30 +0300 Subject: [PATCH] Use cdylib instead of dylib --- README.md | 2 +- examples/ec2-regions/Cargo.toml | 2 +- examples/echo/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f55602..67d99a9 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ You can configure cargo to build a dynamic library with the following. Note that ```toml [lib] name = "lambda" -crate-type = ["dylib"] +crate-type = ["cdylib"] ``` `cargo build` will now build a `liblambda.so`. Put this in a zip file and upload it to an AWS Lambda function. You will need to use the Python 2.7 execution environment with the handler configured as `liblambda.handler`. diff --git a/examples/ec2-regions/Cargo.toml b/examples/ec2-regions/Cargo.toml index b91b0ca..8bc49c3 100644 --- a/examples/ec2-regions/Cargo.toml +++ b/examples/ec2-regions/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Iliana Weller "] [lib] name = "lambda" -crate-type = ["dylib"] +crate-type = ["cdylib"] [dependencies] # Normally you'd write: crowbar = "0.1" diff --git a/examples/echo/Cargo.toml b/examples/echo/Cargo.toml index 51a2c94..3bab627 100644 --- a/examples/echo/Cargo.toml +++ b/examples/echo/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Iliana Weller "] [lib] name = "lambda" -crate-type = ["dylib"] +crate-type = ["cdylib"] [dependencies] # Normally you'd write: crowbar = "0.2"