| 1 |
# openssl-src |
| 2 |
|
| 3 |
This crate contains the logic to build OpenSSL and is intended to be consumed by |
| 4 |
the `openssl-sys` crate. You likely in theory aren't interacting with this too |
| 5 |
much! |
| 6 |
|
| 7 |
## Versioning |
| 8 |
|
| 9 |
This crate follows the latest minor and patch versions for each maintained major version, |
| 10 |
according to the [OpenSSL release strategy](https://www.openssl.org/policies/releasestrat.html). |
| 11 |
It has no specific support for LTS versions. |
| 12 |
|
| 13 |
The crate versions follow the `X.Y.Z+B` pattern: |
| 14 |
* The major version `X` is the upstream OpenSSL API/ABI compatibility version: |
| 15 |
* `300` for 3.Y.Z |
| 16 |
* The minor `Y` and patch `Z` versions are incremented when making changes |
| 17 |
to the crate, either OpenSSL update or internal changes. |
| 18 |
* `B` contains the full upstream OpenSSL version, like `1.1.1k` or `3.0.7`. |
| 19 |
Note that this field is actually ignored in comparisons and only there for |
| 20 |
documentation. |
| 21 |
|
| 22 |
## Windows MSVC Assembly |
| 23 |
|
| 24 |
Building OpenSSL for `windows-msvc` targets, users can choose whether to enable |
| 25 |
assembly language routines, which requires [nasm](https://www.nasm.us/). |
| 26 |
The build process will automatically detect whether `nasm.exe` is installed in |
| 27 |
PATH. If found, the assembly language routines will be enabled (in other words, |
| 28 |
the `no-asm` option will NOT be configured). |
| 29 |
|
| 30 |
You can manipulate this behavior by setting the `OPENSSL_RUST_USE_NASM` environment |
| 31 |
variable: |
| 32 |
* `1`: Force enable the assembly language routines. (panic if `nasm.exe` is not |
| 33 |
available.) |
| 34 |
* `0`: Force disable the assembly language routines even if the `nasm.exe` can be |
| 35 |
found in PATH. |
| 36 |
* not set: Let the build process automatically detect whether `nasm.exe` is |
| 37 |
installed. If found, enable. If not, disable. |
| 38 |
|
| 39 |
However, this environment variable does NOT take effects on non-windows platforms. |
| 40 |
|
| 41 |
## License |
| 42 |
|
| 43 |
This project is licensed under either of |
| 44 |
|
| 45 |
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or |
| 46 |
http://www.apache.org/licenses/LICENSE-2.0) |
| 47 |
* MIT license ([LICENSE-MIT](LICENSE-MIT) or |
| 48 |
http://opensource.org/licenses/MIT) |
| 49 |
|
| 50 |
at your option. |
| 51 |
|
| 52 |
### Contribution |
| 53 |
|
| 54 |
Unless you explicitly state otherwise, any contribution intentionally submitted |
| 55 |
for inclusion in openssl-src by you, as defined in the Apache-2.0 license, shall be |
| 56 |
dual licensed as above, without any additional terms or conditions. |