You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,23 @@ The `rust-tpm2-cli` crate provides a suite of Rust-based command-line tools for
17
17
18
18
### Install dependencies
19
19
20
-
```bash
20
+
-[Rust](https://rust-lang.org/): v1.88.0 or later
21
+
-[tpm2-tss](https://github.com/tpm2-software/tpm2-tss): v4.1.3 or later (C library)
22
+
23
+
Install the latest Rust toolchain:
24
+
25
+
```sh
21
26
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
22
27
source"$HOME/.cargo/env"
23
28
```
24
29
25
-
`rust-tpm2-cli` targets the unreleased nightly version [tpm2-tss](https://github.com/tpm2-software/tpm2-tss), which includes significant updates beyond the 4.1.3 release (e.g. Unix domain socket support for the swtpm TCTI).
26
-
To build `tpm2-tss` from source:
30
+
Install `tpm2-tss` from package manager (may be outdated):
31
+
32
+
```sh
33
+
sudo apt install -y libtss2-dev pkg-config
34
+
```
27
35
28
-
> [!WARNING]
29
-
> The steps below install a locally-built nightly snapshot under `/usr` with a **fake version tag** (`4.1.999`).
30
-
> This may conflict with a distro-packaged `tpm2-tss` or with future upstream releases, as a package manager may refuse to downgrade from the fake version `4.1.999` to an official but lower version number (e.g., v4.1.4).
31
-
> Once an official release with these features is available in your distribution's packages, you can simply install `tpm2-tss` by running `sudo apt install -y libtss2-dev`.
36
+
If the version of `tpm2-tss` available from the package manager is too old, build `tpm2-tss` from source:
0 commit comments