summaryrefslogtreecommitdiffstats
path: root/build.rs
Commit message (Collapse)AuthorAgeFilesLines
* Change how build environment variable is setRory Dudley2024-07-201-1/+1
| | | | | | | | | | It appears that some older versions of the Rust compiler do not like the double colon syntax when setting environment variables for the build process. Until the latest cargo release will only accept the double colon syntax, use a single colon when setting environment variables in build.rs. Signed-off-by: Rory Dudley <rory@netc.lu>
* Display less characters from the commit hashRory Dudley2024-07-161-1/+1
| | | | | | | | | | The '--version' option prints out the program version, along with the first 10 characters of the git commit hash, indicating at what commit the program was built. This patch reduces the length of the commit hash that gets embeded in the dwvsh binary to 7 characters, as that should be more than enought to determine the correct commit. Signed-off-by: Rory Dudley <rory@netc.lu>
* Option parsing and versionRory Dudley2024-07-031-0/+16
Add some basic logic for parsing commandline arguments. Also, use build.rs to embed the program version (and git commit) during the compile step. The program currently accepts the '--version' commandline argument to print the version, then quit.