Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
users
Commits
f0313155
Verified
Commit
f0313155
authored
Mar 17, 2022
by
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Cargo.toml
View file @
f0313155
[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"
...
...
src/lib.rs
View file @
f0313155
...
...
@@ -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"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment