Skip to main content

builder

Function builder 

Source
pub fn builder(app: &str) -> Builder
Available on crate feature device-id only.
Expand description

Options for an id or a fingerprint.

use sys_lib::device::{self, Basis};

let secret: [u8; 32] = [7; 32];   // the application's own, never shipped in clients
let id = device::builder("com.example.licensing")
    .basis(Basis::Hardware)
    .secret(secret)
    .id()?;