Skip to content

Commit c01accd

Browse files
committed
Move const to the bottom
1 parent 14eae40 commit c01accd

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

librustls/build.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ use std::fs::File;
22
use std::io::Write;
33
use std::{env, fs, path::PathBuf};
44

5-
// Keep in sync with Cargo.toml.
6-
//
7-
// We don't populate this automatically from the Cargo.toml at build time
8-
// because doing so would require a heavy-weight deserialization lib dependency
9-
// (and it couldn't be a _dev_ dep for use in a build script) or doing brittle
10-
// by-hand parsing.
11-
const RUSTLS_CRATE_VERSION: &str = "0.23.37";
12-
135
fn main() {
146
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
157
let include_dir = out_dir.join("include");
@@ -38,3 +30,11 @@ fn main() {
3830

3931
println!("cargo:rerun-if-env-changed=CARGO_PKG_VERSION");
4032
}
33+
34+
// Keep in sync with Cargo.toml.
35+
//
36+
// We don't populate this automatically from the Cargo.toml at build time
37+
// because doing so would require a heavy-weight deserialization lib dependency
38+
// (and it couldn't be a _dev_ dep for use in a build script) or doing brittle
39+
// by-hand parsing.
40+
const RUSTLS_CRATE_VERSION: &str = "0.23.37";

0 commit comments

Comments
 (0)