Commit 7af0425
committed
feat(fingerprint): integrate rustdoc dep-info files
This leverages the unstable `--emit=depinfo` option from rustdoc,
so that rustdoc invocation rebuild can be better tracked
without traversing the entire directory.
Some design decisions:
* Rustdoc's depinfo doesn't and shouldn't emit to `target/doc`,
as the directory is considered part of the final artifact directory.
In regard to that, we specify the dep-info output path to
the fingerprint directory of rustdoc invocation.
It looks like this
`target/debug/.fingerprint/serde-12d29d32b3b8b38f/doc-lib-serde.d`.
* We also start supporting `-Zchecksum-freshness` as a side effect.
Could make it a separate PR if desired.
* `-Zbinary-dep-depinfo` is not enabled along with this,
since doc generations don't really require any binary dependencies.1 parent 9ba555f commit 7af0425
3 files changed
+83
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1498 | 1500 | | |
1499 | 1501 | | |
1500 | 1502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
766 | 780 | | |
767 | 781 | | |
768 | 782 | | |
| |||
838 | 852 | | |
839 | 853 | | |
840 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
841 | 869 | | |
842 | 870 | | |
843 | 871 | | |
| |||
903 | 931 | | |
904 | 932 | | |
905 | 933 | | |
| 934 | + | |
906 | 935 | | |
907 | 936 | | |
908 | 937 | | |
| |||
930 | 959 | | |
931 | 960 | | |
932 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
933 | 985 | | |
934 | 986 | | |
935 | 987 | | |
| |||
2012 | 2064 | | |
2013 | 2065 | | |
2014 | 2066 | | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2941 | 2941 | | |
2942 | 2942 | | |
2943 | 2943 | | |
2944 | | - | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
2945 | 2947 | | |
2946 | 2948 | | |
2947 | 2949 | | |
2948 | 2950 | | |
2949 | 2951 | | |
2950 | 2952 | | |
2951 | 2953 | | |
2952 | | - | |
| 2954 | + | |
2953 | 2955 | | |
2954 | 2956 | | |
2955 | 2957 | | |
| |||
2978 | 2980 | | |
2979 | 2981 | | |
2980 | 2982 | | |
2981 | | - | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
2982 | 2986 | | |
2983 | 2987 | | |
2984 | 2988 | | |
2985 | 2989 | | |
2986 | 2990 | | |
2987 | 2991 | | |
2988 | 2992 | | |
2989 | | - | |
| 2993 | + | |
2990 | 2994 | | |
2991 | 2995 | | |
2992 | 2996 | | |
| |||
3015 | 3019 | | |
3016 | 3020 | | |
3017 | 3021 | | |
3018 | | - | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
3019 | 3025 | | |
3020 | 3026 | | |
3021 | 3027 | | |
3022 | 3028 | | |
3023 | 3029 | | |
3024 | 3030 | | |
3025 | 3031 | | |
3026 | | - | |
| 3032 | + | |
3027 | 3033 | | |
3028 | 3034 | | |
3029 | 3035 | | |
| |||
3074 | 3080 | | |
3075 | 3081 | | |
3076 | 3082 | | |
3077 | | - | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
3078 | 3087 | | |
3079 | 3088 | | |
3080 | 3089 | | |
| 3090 | + | |
3081 | 3091 | | |
3082 | 3092 | | |
3083 | 3093 | | |
3084 | 3094 | | |
3085 | 3095 | | |
3086 | 3096 | | |
3087 | 3097 | | |
3088 | | - | |
| 3098 | + | |
| 3099 | + | |
3089 | 3100 | | |
3090 | 3101 | | |
3091 | 3102 | | |
3092 | | - | |
| 3103 | + | |
3093 | 3104 | | |
3094 | 3105 | | |
3095 | 3106 | | |
| |||
3123 | 3134 | | |
3124 | 3135 | | |
3125 | 3136 | | |
3126 | | - | |
| 3137 | + | |
3127 | 3138 | | |
3128 | 3139 | | |
3129 | 3140 | | |
| |||
0 commit comments