Verified Commit f0313155 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

0.4.2 - fix build without default features

parent b7511145
Pipeline #10071 failed with stages
in 62 minutes and 18 seconds
[package]
name = "redox_users"
version = "0.4.1"
version = "0.4.2"
authors = ["Jose Narvaez <goyox86@gmail.com>", "Wesley Hershberger <mggmugginsmc@gmail.com>"]
description = "A Rust library to access Redox users and groups functionality"
license = "MIT"
......
......@@ -45,6 +45,7 @@ use std::thread;
use std::time::Duration;
use thiserror::Error;
#[cfg(feature = "auth")]
use zeroize::Zeroize;
//#[cfg(not(target_os = "redox"))]
......@@ -219,10 +220,13 @@ pub fn is_valid_name(name: &str) -> bool {
/// Marker types for [`User`] and [`AllUsers`].
pub mod auth {
#[cfg(feature = "auth")]
use std::fmt;
#[cfg(feature = "auth")]
use zeroize::Zeroize;
#[cfg(feature = "auth")]
use crate::Error;
/// Marker type indicating that a `User` only has access to world-readable
......@@ -291,6 +295,7 @@ pub mod auth {
}
}
#[cfg(feature = "auth")]
impl fmt::Debug for Full {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("Full")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment