Skip to content

Commit 9141174

Browse files
dynaxismajecty
authored andcommitted
Upgrade vergen 3
1 parent 5294db2 commit 9141174

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

Cargo.lock

Lines changed: 2 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ toml = "0.4"
5454
cidr = "0.0.4"
5555

5656
[build-dependencies]
57-
vergen = "2"
57+
vergen = "3"
5858

5959
[[bin]]
6060
path = "codechain/main.rs"

build.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,8 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

17-
extern crate vergen;
18-
19-
use vergen::{ConstantsFlags, Result, Vergen};
17+
use vergen::{generate_cargo_keys, ConstantsFlags};
2018

2119
fn main() {
22-
gen_constants().expect("Unable to generate vergen constants!");
23-
}
24-
25-
fn gen_constants() -> Result<()> {
26-
let vergen = Vergen::new(ConstantsFlags::all())?;
27-
28-
for (k, v) in vergen.build_info() {
29-
println!("cargo:rustc-env={}={}", k.name(), v);
30-
}
31-
32-
Ok(())
20+
generate_cargo_keys(ConstantsFlags::all()).expect("Unable to generate vergen constants!");
3321
}

0 commit comments

Comments
 (0)