Forráskód Böngészése

Added notes on using built crate.

Steve Thielemann 2 hónapja
szülő
commit
a86d1aae0f
1 módosított fájl, 15 hozzáadás és 0 törlés
  1. 15 0
      NOTES.md

+ 15 - 0
NOTES.md

@@ -0,0 +1,15 @@
+# Using built
+
+This needs build.rs in the src parent directory. (Where Cargo.* lives.)
+
+This creates a built.rs in the target directory, which gets included.
+
+To get git information, you need to ```git tag 0.1.0``` the version.
+
+(If you want that in the built info.)
+
+Also, if you do anything with git -- it seems like you need to do
+```cargo clean; cargo build``` so it redoes the built file.
+It sounds like it isn't easy to tell when git has changed something,
+at least from built's perspective.
+