Skip to content

Commit

Permalink
Merge branch 'master' of github.com:baoyachi/shadow-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Oct 15, 2022
2 parents 14c9abb + 0bc81f3 commit 89e1907
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[shadow-rs][docsrs]:: build-time information stored in your rust project.(binary,lib,cdylib,dylib)
[shadow-rs][docsrs]: build-time information stored in your rust project. (binary, lib, cdylib and dylib)
========================================
<p align="center">
<img
Expand All @@ -25,26 +25,27 @@
* The Git commit that produced the build artifact (binary)
* What version of the rust toolchain was used in compilation
* The build variant, e.g. `debug` or `release`
* (And more)

And more!

You can use this tool to check in production exactly where a binary came from and how it was built.

![build_module](./build_module.png)

# Notice ⚠️
> The build.rs not rebuild every-time if the repository has been history builld.
The recommended way is to cargo clean first, then execute cargo build, or use the ci/cd pipeline tool to help you perform this operation.
Detail see:https://github.com/baoyachi/shadow-rs/issues/95
> The build.rs **is not rebuilt** every-time if the repository has been history builld.
The recommended way is to run `cargo clean` first, then execute `cargo build`, or use a CI/CD pipeline tool to help you perform this operation.
For more details, see https://github.com/baoyachi/shadow-rs/issues/95.


# Full Examples

* Check out the [example_shadow](https://github.com/baoyachi/shadow-rs/tree/master/example_shadow) for a simple
demonstration of how `shadow-rs` might be used to provide build-time information at run-time.
* Check out the [example_shadow_hook](https://github.com/baoyachi/shadow-rs/tree/master/example_shadow_hook) for a
simple demonstration of how `shadow-rs` might be used to provide build-time information at run-time,and add custom
simple demonstration of how `shadow-rs` might be used to provide build-time information at run-time and add a custom
hook.
* built in function:[examples](https://github.com/baoyachi/shadow-rs/tree/master/examples).
* Built-in function:[examples](https://github.com/baoyachi/shadow-rs/tree/master/examples).

# Setup Guide

Expand Down Expand Up @@ -137,10 +138,9 @@ fn main() {

## Clap Example

And you can also use `shadow-rs`
with [`clap`](https://github.com/baoyachi/shadow-rs/blob/master/example_shadow/src/main.rs).
You also can use shadow-rs with [`clap`](https://github.com/baoyachi/shadow-rs/blob/master/example_shadow/src/main.rs).

## Support const,function in table
## Constants and functions in table

#### shadow-rs built in function.

Expand Down
2 changes: 1 addition & 1 deletion example_shadow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = "3.1.0"
clap = "4.0.1"
shadow-rs = { path = "../" }

[build-dependencies]
Expand Down

0 comments on commit 89e1907

Please sign in to comment.