Debian Codegraph @

debian/rust-vendor/aws-lc-sys/README.md

raw
1 # aws-lc-sys
2
3 [![crates.io](https://img.shields.io/crates/v/aws-lc-sys.svg)](https://crates.io/crates/aws-lc-sys)
4 [![GitHub](https://img.shields.io/badge/GitHub-aws%2Faws--lc--rs-blue)](https://github.com/aws/aws-lc-rs)
5
6 **Autogenerated** Low-level bindings to the AWS-LC library for the Rust programming language. The versioning for this
7 crate will be unstable.
8 New releases of AWS-LC will correspond to a new `0.x.0` version of this crate. Features and/or fixes from AWS-LC
9 will not be backported to older versions of this crate. We do not recommend taking a direct dependency on this crate.
10
11 See our [User Guide](https://aws.github.io/aws-lc-rs/) for guidance on installing build requirements.
12
13 [Documentation](https://github.com/aws/aws-lc).
14
15 ## Build Support
16
17 This crate pulls in the source code of AWS-LC to build with it. Bindings for popular platforms are pre-generated.
18 To generate bindings for platforms where pre-generated bindings aren't available, you can either specify our `bindgen`
19 feature or install the [bindgen-cli](https://crates.io/crates/bindgen-cli).
20
21 ### Pregenerated Bindings Availability
22
23 Targets
24 -------------
25 aarch64_apple_darwin
26 aarch64_pc_windows_msvc
27 aarch64_unknown_linux_gnu
28 aarch64_unknown_linux_musl
29 i686_pc_windows_msvc
30 i686_unknown_linux_gnu
31 x86_64_apple_darwin
32 x86_64_pc_windows_gnu
33 x86_64_pc_windows_msvc
34 x86_64_unknown_linux_gnu
35 x86_64_unknown_linux_musl
36
37 ### Use of prebuilt NASM objects
38
39 For Windows x86 and x86-64, NASM is required for assembly code compilation. On these platforms,
40 we recommend that you install [the NASM assembler](https://www.nasm.us/). If NASM is
41 detected in the build environment *it is used* to compile the assembly files. However,
42 if a NASM assembler is not available, and the "fips" feature is not enabled, then the build fails unless one of the
43 following conditions are true:
44
45 * You are building for `x86-64` and either:
46 * The `AWS_LC_SYS_PREBUILT_NASM` environment variable is found and has a value of "1"; OR
47 * `AWS_LC_SYS_PREBUILT_NASM` is *not found* in the environment AND the "prebuilt-nasm" feature has been enabled.
48
49 If the above cases apply, then the crate provided prebuilt NASM objects will be used for the build. To prevent usage of
50 prebuilt NASM
51 objects, install NASM in the build environment and/or set the variable `AWS_LC_SYS_PREBUILT_NASM` to `0` in the build
52 environment to prevent their use.
53
54 #### About prebuilt NASM objects
55
56 Prebuilt NASM objects are generated using automation similar to the crate provided pregenerated bindings. See the
57 repository's
58 [GitHub workflow configuration](https://github.com/aws/aws-lc-rs/blob/main/.github/workflows/sys-bindings-generator.yml)
59 for more information.
60 The prebuilt NASM objects are checked into the repository
61 and are [available for inspection](https://github.com/aws/aws-lc-rs/tree/main/aws-lc-sys/builder/prebuilt-nasm).
62 For each PR submitted,
63 [CI verifies](https://github.com/aws/aws-lc-rs/blob/main/.github/workflows/tests.yml)
64 that the NASM objects newly built from source match the NASM objects currently in the repository.
65
66 ## Build Prerequisites
67
68 Since this crate builds AWS-LC as a native library, most build tools needed to build AWS-LC are applicable
69 to `aws-lc-sys` as well. Go and Perl aren't absolutely necessary for `aws-lc-sys`, as AWS-LC provides generated build
70 files.
71
72 [Building AWS-LC](https://github.com/aws/aws-lc/blob/main/BUILDING.md)
73
74 AWS-LC is tested on a variety of C/C++ compiler, OS, and CPU combinations. For a complete list of tested combinations
75 see [tests/ci/Readme.md](https://github.com/aws/aws-lc/tree/main/tests/ci#unit-tests). If you use a different build
76 combination and would like us to support it, please open an issue to us
77 at [AWS-LC](https://github.com/aws/aws-lc/issues/new?assignees=&labels=&template=build-issue.md&title=).
78
79 ## Building with a FIPS-validated module
80
81 This crate does not offer the AWS-LC FIPS build. To use AWS-LC FIPS, please use the FIPS version of this crate,
82 available at [aws-lc-fips-sys](https://crates.io/crates/aws-lc-fips-sys).
83
84 ## Post-Quantum Cryptography
85
86 Details on the post-quantum algorithms supported by aws-lc-sys can be found at
87 [PQREADME](https://github.com/aws/aws-lc/tree/main/crypto/fipsmodule/PQREADME.md).
88
89 ## Security Notification Process
90
91 If you discover a potential security issue in *AWS-LC* or *aws-lc-sys*, we ask that you notify AWS
92 Security via our
93 [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/).
94 Please do **not** create a public GitHub issue.
95
96 If you package or distribute *aws-lc-sys*, or use *aws-lc-sys* as part of a large multi-user service,
97 you may be eligible for pre-notification of future *aws-lc-sys* releases.
98 Please contact [email protected].
99
100 ## Contribution
101
102 See contributing file at [AWS-LC](https://github.com/aws/aws-lc/blob/main/CONTRIBUTING.md)
103
104 ## Licensing
105
106 See license at [AWS-LC](https://github.com/aws/aws-lc/blob/main/LICENSE)