| 1 |
# Notes |
| 2 |
|
| 3 |
## Making a release |
| 4 |
|
| 5 |
1. run vcpkg_cli and test it |
| 6 |
1. run systest\test.cmd |
| 7 |
1. check that everything is committed and work dir is clean |
| 8 |
1. push to master on github |
| 9 |
1. check that github actions ci passes |
| 10 |
1. update changelog, commit and push |
| 11 |
1. update version number in Cargo.toml for the crate to be released |
| 12 |
1. commit |
| 13 |
1. push |
| 14 |
1. wait for the ci to work |
| 15 |
1. create a tag for the right crate like `git tag vcpkg-rs-0.2.3` |
| 16 |
1. cd to the crate dir and run `cargo publish` |
| 17 |
1. git push origin --tags |
| 18 |
|
| 19 |
## Possible future features |
| 20 |
|
| 21 |
- hide or deprecate or note that the lib_name api is not as good as find_package |
| 22 |
|
| 23 |
- make sure the find_package api is first in the docs and mention that it's the best option |
| 24 |
|
| 25 |
- allow specifying a triple to use using an environment variable. this will allow setting up a custom "x64-rust-static" triple that dynamically links to msvcrt, allowing static builds with the default rust. |
| 26 |
|
| 27 |
- add information about target triples and target triple selection being driven by RUSTFLAGS=-Ctarget-feature=+crt-static |
| 28 |
|
| 29 |
- add a note that even rust debug builds are linked against the release version |
| 30 |
of built libraries |
| 31 |
|
| 32 |
- there is a lib\no_auto_link folder that some packages generate that needs |
| 33 |
to be added to the link line. this will require finding an example of |
| 34 |
a library that uses that feature. (boost?) |
| 35 |
|
| 36 |
- vcpkg_cli: make probe failure return a nonzero exit code so the build fails |
| 37 |
|
| 38 |
- remove crate doc info about the libname -> package mapping. (why?) |
| 39 |
|
| 40 |
- look into the possibility of using dotenv to allow setting VCPKG_ROOT |
| 41 |
|
| 42 |
- could run vcpkg and parse it's output to determine what package versions are installed. |
| 43 |
|
| 44 |
- could parse vcpkg's installed files list to guess at the names for libraries and dlls rather than requiring them to be specified. |
| 45 |
|
| 46 |
- could parse vcpkg's installed packages list to determine what other packages we need to link against. |
| 47 |
|
| 48 |
- vcpkg has common include and lib dirs so there is a chance that someone is going to end up picking up a vcpkg lib on their link line in preference to some other version at some point. I believe cmake handles this by using absolute paths for libs wherever possible. if everything below you in the dependency tree is looking in vcpkg then everything will agree. |
| 49 |
|
| 50 |
- vcpkg has a per-package output dir that looks like it would be helpful, but at present it is undocumented and subject to change. (what I read mentioned the possibility of compressing the contents.) |
| 51 |
|
| 52 |
- warn if you use something that looks like a vcpkg triplet in place of a rust triple |
| 53 |
|
| 54 |
- allow specifying of the library to be installed like pkg-config does. (hard in general because there is no specific format for version numbers ) |
| 55 |
|
| 56 |
- allow stipulating that a specific feature be installed. at present if a feature is installed any extra libraries it requires will be linked as expected. how should this be? The vcpkg way is to specify it as harfbuzz[graphite2,icu] for example. |
| 57 |
|
| 58 |
- report enabled/available features in the Library returned from find_package |
| 59 |
|
| 60 |
- get information about installed packages by running the vcpkg executable |
| 61 |
|
| 62 |
- if using json to encode the information, this requires writing a json parser or adding a dependency on serde for anything that transitively depends on vcpkg, which is a lot of stuff, probably only a tiny percentage of which actually uses the vcpkg functionality. otherwise, could invent yet another easy-to-parse custom format. |
| 63 |
- vcpkg is now available on linux and macos also. a possible use is to build the whole bag of windows dependencies on a windows machine at the point that lld can cross link windows/msvc code. |
| 64 |
|
| 65 |
- add a changelog for vcpkg_cli |
| 66 |
|
| 67 |
- make the breaking change of dropping Rust 1.10 (actually 1.12) compatibility when updating to 0.3 |
| 68 |
|
| 69 |
- vcpkg_cli should say if there are other versions of the ports available that do not match what is being looked for |
| 70 |
|
| 71 |
- add some commentary describing the vcpkg target triplets on windows - static vs dynamic crt and the fact that rust prefers something in between - dynamic crt, static libs on top of that. |
| 72 |
|
| 73 |
- vcpkg now has a community supported triplet called x64-windows-static-md which is a match for the default Rust build type on windows - dynamic linking to the c runtime, and static linking to other libraries. |
| 74 |
|
| 75 |
## Creating empty files from list files |
| 76 |
|
| 77 |
```sh |
| 78 |
touch `grep -h \.lib$ vcpkg/info/*x86* | grep -v debug ` |
| 79 |
touch `grep -h \.dll$ vcpkg/info/*x86* | grep -v debug ` |
| 80 |
``` |
| 81 |
|