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

Commit

Permalink
Use cdylib instead of dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
therustmonk committed Aug 22, 2017
1 parent 6d4c2f5 commit 285cd1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 285cd1b

Please sign in to comment.