Module craft

Source
Expand description

Core craft functionality

Structs§

CraftPadding
A boringssl-style client padding presented by Craftls.
Fingerprint
Represents a TLS fingerprint
FingerprintBuilder
A builder for constructing a Fingerprint with customizable configurations. The builder allows specific aspects of the TLS fingerprint to be overridden, ensuring that the final crate::ClientConfig and ClientHello align with desired specifications or testing conditions.
FingerprintSet
Represents a collection of Fingerprint instances, each configured with different ALPN extensions.
__StaticInitGeneratorFor_CHROME_108Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_CHROME_112Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_CHROME_108_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_CHROME_CIPHERLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_FIREFOX_105Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_FIREFOX_105_CIPHERSLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_FIREFOX_105_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_RUSTLS_TESTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_SAFARI_17_1Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_SAFARI_17_1_CIPHERSLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
__StaticInitGeneratorFor_SAFARI_17_1_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS

Enums§

CraftExtension
Craft client extension provides customization to rustls client extensions, or offers some unavailable extensions in rustls.
ExtensionSpec
ExtensionSpec outlines the types of client extensions that can be used in a fingerprint specification
GreaseOr
An enum representing either a valid value of type T or a GREASE (Generate Random Extensions And Sustain Extensibility) placeholder.
KeepExtension
KeepExtension gives fine-grained control over the inclusion of extensions originally generated by Rustls. It dictates whether to keep certain Rustls extensions, use them optionally, or provide a default if unavailable.

Statics§

CHROME_108Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
Represents a set of Fingerprint configurations, each tailored for different ALPN extensions.
CHROME_112Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
Represents a set of Fingerprint configurations, each tailored for different ALPN extensions.
CHROME_108_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The extension list of chrome 108
CHROME_108_SIGNATURE_ALGO
The signature algorithms of chrome 108
CHROME_CIPHERLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The cipher list of chrome 108
DEFAULT_RUSTLS_SESSION_TICKET
FIREFOX_105Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
Represents a set of Fingerprint configurations, each tailored for different ALPN extensions.
FIREFOX_105_CIPHERSLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The cipher list of firefox 105
FIREFOX_105_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The extension list of firefox 105
FIREFOX_105_SIGNATURE_ALGO
The signature algorithm list of firefox 105
OCSP_REQ
The default ocsp request of browsers
RUSTLS_TESTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
Represents a set of Fingerprint configurations, each tailored for different ALPN extensions.
SAFARI_17_1Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
Represents a set of Fingerprint configurations, each tailored for different ALPN extensions.
SAFARI_17_1_CIPHERSLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The cipher list of Safari 17.1
SAFARI_17_1_EXTLinux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks" or Windows or macOS or iOS
The extension list of Safari 17.1
SAFARI_17_1_SIGNATURE_ALGO
The signature algorithm list of Safari 17.1

Type Aliases§

GreaseOrCipher
A type that can either hold a valid CipherSuite or serve as a GREASE placeholder.
GreaseOrCurve
A type that can either hold a valid NamedGroup or serve as a GREASE placeholder.
GreaseOrVersion
A type that can either hold a valid ProtocolVersion or serve as a GREASE placeholder.