Skip to content

Commit

Permalink
# static-keys v0.6.1
Browse files Browse the repository at this point in the history
Bare metal support is added.

Bump dependencies.
  • Loading branch information
Evian-Zhang committed Oct 30, 2024
1 parent 8526b17 commit 3aa610f
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 27 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG/v0.6.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# static-keys v0.6.1

Bare metal support is added.

Bump dependencies.
59 changes: 33 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "static-keys"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = ["Evian-Zhang <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Currently CI-tested platforms:

* `x86_64-pc-windows-msvc`
* `i686-pc-windows-msvc`
* Bare metal (No CI)
* Should work with above-mentioned architectures. For more detail, see [FAQ](https://evian-zhang.github.io/static-keys/en/FAQs.html#How-can-I-use-this-crate-in-bare-metal).

Note that when using cross-rs to build `loongarch64-unknown-linux-gnu` target, you should use latest cross-rs avaiable on GitHub. See [Evian-Zhang/static-keys#4](https://github.com/Evian-Zhang/static-keys/pull/4) for more details.

Expand Down
4 changes: 4 additions & 0 deletions docs/en/src/FAQs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ Because when passing a static variable to inline assembly as `sym` argument, it
## Can I use this crate in `no_std`?

Yes.

## How can I use this crate in bare metal?

You should modify your linker script to add `__start` and `__stop` prefix symbols for marking start and end address of corresponding sections. For more details, see [Evian-Zhang/static-keys#6](https://github.com/Evian-Zhang/static-keys/pull/6).
2 changes: 2 additions & 0 deletions docs/en/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Currently CI-tested platforms:

* `x86_64-pc-windows-msvc`
* `i686-pc-windows-msvc`
* Bare metal (No CI)
* Should work with above-mentioned architectures. For more detail, see [FAQ](https://evian-zhang.github.io/static-keys/en/FAQs.html#How-can-I-use-this-crate-in-bare-metal).

Note that when using cross-rs to build `loongarch64-unknown-linux-gnu` target, you should use latest cross-rs avaiable on GitHub. See [Evian-Zhang/static-keys#4](https://github.com/Evian-Zhang/static-keys/pull/4) for more details.

Expand Down
4 changes: 4 additions & 0 deletions docs/zh-Hans/src/FAQs.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@
## 我可以在`no_std`环境中使用吗?

可以

## 我可以在裸金属环境中使用吗?

可以。需要修改linker script,在对应的节前后加上`__start``__stop`为前缀的相应符号。具体可见[Evian-Zhang/static-keys#6](https://github.com/Evian-Zhang/static-keys/pull/6)
2 changes: 2 additions & 0 deletions docs/zh-Hans/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

* `x86_64-pc-windows-msvc`
* `i686-pc-windows-msvc`
* 裸金属(未经过CI测试)
* 上述架构应该都能支持。具体可见[FAQ](https://evian-zhang.github.io/static-keys/zh-Hans/FAQs.html#我可以在裸金属环境中使用吗)

需要注意,如果使用cross-rs交叉编译`loongarch64-unknown-linux-gnu`平台,需要使用GitHub上的最新版cross-rs。更多细节可参见[Evian-Zhang/static-keys#4](https://github.com/Evian-Zhang/static-keys/pull/4)

Expand Down

0 comments on commit 3aa610f

Please sign in to comment.