Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Use cdylib instead of dylib #7

Merged
merged 1 commit into from
Aug 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion examples/ec2-regions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Iliana Weller <[email protected]>"]

[lib]
name = "lambda"
crate-type = ["dylib"]
crate-type = ["cdylib"]

[dependencies]
# Normally you'd write: crowbar = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Iliana Weller <[email protected]>"]

[lib]
name = "lambda"
crate-type = ["dylib"]
crate-type = ["cdylib"]

[dependencies]
# Normally you'd write: crowbar = "0.2"
Expand Down