Skip to content

Instantly share code, notes, and snippets.

@winding-lines
Last active September 27, 2016 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winding-lines/a310e9cd7a9b7d0ea2fa8a25e93379a9 to your computer and use it in GitHub Desktop.
Save winding-lines/a310e9cd7a9b7d0ea2fa8a25e93379a9 to your computer and use it in GitHub Desktop.
Linking against hyper on both OS X and Linux
[package]
name = "http"
version = "0.1.0"
authors = ["Marius Seritan <github@seritan.net>"]
[target.'cfg(target_os = "macos")'.dependencies]
hyper = {version="*", default_features=false, features=["security-framework"]}
[target.'cfg(target_os = "linux")'.dependencies]
hyper = {version="*"}
extern crate hyper;
fn main() {
let client = hyper::Client::new();
println!("Hello, world!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment