// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]

#[cfg(windows)]
extern crate kernel32;
#[cfg(windows)]
#[macro_use]
extern crate log;
#[cfg(windows)]
extern crate widestring;
#[cfg(windows)]
extern crate winapi;

#[cfg(windows)]
pub mod account;
#[cfg(windows)]
pub mod sid;

// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]

extern crate kernel32;
#[macro_use]
extern crate log;
extern crate widestring;
extern crate winapi;

pub mod account;
pub mod sid;

--- 
+++ 
@@ -14,11 +14,17 @@
 #![cfg_attr(feature = "clippy", feature(plugin))]
 #![cfg_attr(feature = "clippy", plugin(clippy))]
 
+#[cfg(windows)]
 extern crate kernel32;
+#[cfg(windows)]
 #[macro_use]
 extern crate log;
+#[cfg(windows)]
 extern crate widestring;
+#[cfg(windows)]
 extern crate winapi;
 
+#[cfg(windows)]
 pub mod account;
+#[cfg(windows)]
 pub mod sid;
[win-users] Allow this crate to build on non-Windows platforms.

This change allows a developer to run `cargo build`/`cargo test`/etc.
from the root of this project, regardless of which platform they are
currently running.

Signed-off-by: Fletcher Nichol <77a0fd9e8048bbacd11af4e957bc6ff03b549f49@nichol.ca>
