Lines Matching +full:- +full:- +full:without +full:- +full:default +full:- +full:features
5 This program generates --cfg compile flags for the configuration headers passed
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
61 def find_check_cfg(self) -> Iterable[str]:
65 return cfg_lint.get("check-cfg", [])
68 def lints(self) -> Mapping[Any, Any]:
71 def get_table(self, key: str, can_be_workspace: bool = False) -> Mapping[Any, Any]:
85 def generate_lint_flags(cargo_toml: CargoTOML, strict_lints: bool) -> Iterable[str]:
86 """Converts Cargo.toml lints to rustc -A/-D/-F/-W flags."""
97 flag = "-D"
99 flag = "-A"
101 flag = "-W"
103 flag = "-F"
112 lint_list.append(LintFlag(flags=["-D", lint], priority=1000000))
119 def generate_cfg_flags(header: str, cargo_toml: CargoTOML) -> Iterable[str]:
120 """Converts defines from config[..].h headers to rustc --cfg flags."""
122 with open(header, encoding="utf-8") as cfg:
132 cfg_list.append("--cfg")
137 def main() -> None:
139 parser.add_argument("-v", "--verbose", action="store_true")
141 "--config-headers",
147 default=[],
157 "--workspace",
163 default=None,
166 "--features",
168 dest="features",
169 help="generate --check-cfg arguments for features",
171 default=None,
174 "--lints",
179 default=None,
182 "--rustc-version",
188 default="1.0.0",
191 "--strict-lints",
195 default=False,
215 print("--check-cfg")
218 print("--check-cfg")
220 if args.features:
221 for feature in cargo_toml.get_table("features"):
222 if feature != "default":
223 print("--check-cfg")