[package]
name = "fluxer_webauthn"
version = "0.0.0"
edition = "2024"
license = "AGPL-3.0-or-later"
publish = false

[workspace]
resolver = "2"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
napi = {version = "3.9.1", default-features = false, features = ["dyn-symbols", "napi8"]}
napi-derive = "3.5.6"

[target.'cfg(target_os = "linux")'.dependencies]
libfido2-sys = "0.5.1"

[target.'cfg(target_os = "windows")'.dependencies]
windows = {version = "0.62.2", features = [
	"Win32_Foundation",
	"Win32_Networking_WindowsWebServices",
	"Win32_System_Threading",
	"Win32_UI_WindowsAndMessaging",
]}
windows-core = "0.62.2"

[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
objc2-foundation = {version = "0.3", features = [
	"NSArray",
	"NSData",
	"NSDictionary",
	"NSError",
	"NSObject",
	"NSString",
	"NSThread",
	"NSValue",
]}
objc2-app-kit = {version = "0.3", features = [
	"NSApplication",
	"NSResponder",
	"NSWindow",
]}
objc2-authentication-services = {version = "0.3.2", features = [
	"ASAuthorization",
	"ASAuthorizationController",
	"ASAuthorizationCredential",
	"ASAuthorizationPlatformPublicKeyCredentialAssertion",
	"ASAuthorizationPlatformPublicKeyCredentialAssertionRequest",
	"ASAuthorizationPlatformPublicKeyCredentialDescriptor",
	"ASAuthorizationPlatformPublicKeyCredentialProvider",
	"ASAuthorizationPlatformPublicKeyCredentialRegistration",
	"ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest",
	"ASAuthorizationProvider",
	"ASAuthorizationPublicKeyCredentialAssertion",
	"ASAuthorizationPublicKeyCredentialAssertionRequest",
	"ASAuthorizationPublicKeyCredentialConstants",
	"ASAuthorizationPublicKeyCredentialDescriptor",
	"ASAuthorizationPublicKeyCredentialParameters",
	"ASAuthorizationPublicKeyCredentialRegistration",
	"ASAuthorizationPublicKeyCredentialRegistrationRequest",
	"ASAuthorizationRequest",
	"ASAuthorizationSecurityKeyPublicKeyCredentialAssertion",
	"ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest",
	"ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor",
	"ASAuthorizationSecurityKeyPublicKeyCredentialProvider",
	"ASAuthorizationSecurityKeyPublicKeyCredentialRegistration",
	"ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest",
	"ASCOSEConstants",
	"ASFoundation",
	"ASPublicKeyCredential",
]}
dispatch2 = "0.3"

[build-dependencies]
napi-build = "2.3.2"
