This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1226 from mozilla-services/feat/1045
feat: switch from snaek to milksnake
- Loading branch information
Showing
12 changed files
with
176 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,12 @@ version = "0.1.0" | |
authors = ["Alex Crichton <[email protected]>"] | ||
|
||
[lib] | ||
name = "autopush" | ||
crate-type = ["cdylib"] | ||
|
||
[build-dependencies] | ||
cbindgen = "0.6.0" | ||
|
||
[dependencies] | ||
base64 = "0.9.1" | ||
bytes = "0.4.6" | ||
|
@@ -36,7 +40,8 @@ rusoto_credential = "0.11.0" | |
rusoto_dynamodb = "0.32.0" | ||
sentry = "0.2.0" | ||
serde = "1.0.45" | ||
serde_derive = "1.0.45" | ||
# Pinned to 1.0.21 due to cbindgen | ||
serde_derive = "1.0.21" | ||
serde_dynamodb = "0.1.2" | ||
serde_json = "1.0.13" | ||
# slog: Use this first version for debug builds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! Generate autopush.h via cbindgen | ||
extern crate cbindgen; | ||
|
||
use std::env; | ||
|
||
fn main() { | ||
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR undefined"); | ||
let pkg_name = env::var("CARGO_PKG_NAME").expect("CARGO_PKG_NAME undefined"); | ||
let target = format!("{}/target/{}.h", crate_dir, pkg_name); | ||
cbindgen::Builder::new() | ||
.with_crate(crate_dir) | ||
.with_language(cbindgen::Language::C) | ||
.generate() | ||
.expect("cbindgen unable to generate bindings") | ||
.write_to_file(target.as_str()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters