plexus-auth-core 0.1.0

Sealed-type primitives for the Plexus auth framework: AuthContext, VerifiedUser, Principal.
Documentation
error[E0624]: associated function `new_sealed` is private
  --> tests/compile_fail/credential_construct.rs:12:45
   |
12 |     let _: Credential<String> = Credential::new_sealed(
   |                                             ^^^^^^^^^^ private associated function
   |
  ::: src/credential.rs
   |
   |     pub(crate) fn new_sealed(inner: T, metadata: CredentialMetadata, id: CredentialId) -> Self {
   |     ------------------------------------------------------------------------------------------ private associated function defined here

warning: unreachable expression
  --> tests/compile_fail/credential_construct.rs:15:9
   |
14 |         unreachable!("can't even build metadata externally without the sealed deps"),
   |         ---------------------------------------------------------------------------- any code following this expression is unreachable
15 |         unreachable!(),
   |         ^^^^^^^^^^^^^^ unreachable expression
   |
   = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default