@@ -205,6 +205,26 @@ pub struct GlobalArgs {
205
205
#[ arg( global = true , long, overrides_with( "offline" ) , hide = true ) ]
206
206
pub no_offline : bool ,
207
207
208
+ /// Allow insecure connections to a host.
209
+ ///
210
+ /// Can be provided multiple times.
211
+ ///
212
+ /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
213
+ /// `localhost:8080`), or a URL (e.g., `https://localhost`).
214
+ ///
215
+ /// WARNING: Hosts included in this list will not be verified against the system's certificate
216
+ /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
217
+ /// bypasses SSL verification and could expose you to MITM attacks.
218
+ #[ arg(
219
+ long,
220
+ alias = "trusted-host" ,
221
+ env = EnvVars :: UV_INSECURE_HOST ,
222
+ value_delimiter = ' ' ,
223
+ value_parser = parse_insecure_host,
224
+ help_heading = "Index options"
225
+ ) ]
226
+ pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
227
+
208
228
/// Whether to enable experimental, preview features.
209
229
///
210
230
/// Preview features may change without warning.
@@ -1768,25 +1788,6 @@ pub struct PipUninstallArgs {
1768
1788
#[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
1769
1789
pub keyring_provider : Option < KeyringProviderType > ,
1770
1790
1771
- /// Allow insecure connections to a host.
1772
- ///
1773
- /// Can be provided multiple times.
1774
- ///
1775
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
1776
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
1777
- ///
1778
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
1779
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
1780
- /// bypasses SSL verification and could expose you to MITM attacks.
1781
- #[ arg(
1782
- long,
1783
- alias = "trusted-host" ,
1784
- env = EnvVars :: UV_INSECURE_HOST ,
1785
- value_delimiter = ' ' ,
1786
- value_parser = parse_insecure_host,
1787
- ) ]
1788
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
1789
-
1790
1791
/// Use the system Python to uninstall packages.
1791
1792
///
1792
1793
/// By default, uv uninstalls from the virtual environment in the current working directory or
@@ -2360,25 +2361,6 @@ pub struct VenvArgs {
2360
2361
#[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
2361
2362
pub keyring_provider : Option < KeyringProviderType > ,
2362
2363
2363
- /// Allow insecure connections to a host.
2364
- ///
2365
- /// Can be provided multiple times.
2366
- ///
2367
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
2368
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
2369
- ///
2370
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
2371
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
2372
- /// bypasses SSL verification and could expose you to MITM attacks.
2373
- #[ arg(
2374
- long,
2375
- alias = "trusted-host" ,
2376
- env = EnvVars :: UV_INSECURE_HOST ,
2377
- value_delimiter = ' ' ,
2378
- value_parser = parse_insecure_host,
2379
- ) ]
2380
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
2381
-
2382
2364
/// Limit candidate packages to those that were uploaded prior to the given date.
2383
2365
///
2384
2366
/// Accepts both RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`) and local dates in the same
@@ -4068,26 +4050,6 @@ pub struct InstallerArgs {
4068
4050
) ]
4069
4051
pub keyring_provider : Option < KeyringProviderType > ,
4070
4052
4071
- /// Allow insecure connections to a host.
4072
- ///
4073
- /// Can be provided multiple times.
4074
- ///
4075
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4076
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4077
- ///
4078
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4079
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4080
- /// bypasses SSL verification and could expose you to MITM attacks.
4081
- #[ arg(
4082
- long,
4083
- alias = "trusted-host" ,
4084
- env = EnvVars :: UV_INSECURE_HOST ,
4085
- value_delimiter = ' ' ,
4086
- value_parser = parse_insecure_host,
4087
- help_heading = "Index options"
4088
- ) ]
4089
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4090
-
4091
4053
/// Settings to pass to the PEP 517 build backend, specified as `KEY=VALUE` pairs.
4092
4054
#[ arg(
4093
4055
long,
@@ -4230,26 +4192,6 @@ pub struct ResolverArgs {
4230
4192
) ]
4231
4193
pub keyring_provider : Option < KeyringProviderType > ,
4232
4194
4233
- /// Allow insecure connections to a host.
4234
- ///
4235
- /// Can be provided multiple times.
4236
- ///
4237
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4238
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4239
- ///
4240
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4241
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4242
- /// bypasses SSL verification and could expose you to MITM attacks.
4243
- #[ arg(
4244
- long,
4245
- alias = "trusted-host" ,
4246
- env = EnvVars :: UV_INSECURE_HOST ,
4247
- value_delimiter = ' ' ,
4248
- value_parser = parse_insecure_host,
4249
- help_heading = "Index options"
4250
- ) ]
4251
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4252
-
4253
4195
/// The strategy to use when selecting between the different compatible versions for a given
4254
4196
/// package requirement.
4255
4197
///
@@ -4422,26 +4364,6 @@ pub struct ResolverInstallerArgs {
4422
4364
) ]
4423
4365
pub keyring_provider : Option < KeyringProviderType > ,
4424
4366
4425
- /// Allow insecure connections to a host.
4426
- ///
4427
- /// Can be provided multiple times.
4428
- ///
4429
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4430
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4431
- ///
4432
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4433
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4434
- /// bypasses SSL verification and could expose you to MITM attacks.
4435
- #[ arg(
4436
- long,
4437
- alias = "trusted-host" ,
4438
- env = EnvVars :: UV_INSECURE_HOST ,
4439
- value_delimiter = ' ' ,
4440
- value_parser = parse_insecure_host,
4441
- help_heading = "Index options"
4442
- ) ]
4443
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4444
-
4445
4367
/// The strategy to use when selecting between the different compatible versions for a given
4446
4368
/// package requirement.
4447
4369
///
@@ -4645,25 +4567,6 @@ pub struct PublishArgs {
4645
4567
/// Defaults to `disabled`.
4646
4568
#[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
4647
4569
pub keyring_provider : Option < KeyringProviderType > ,
4648
-
4649
- /// Allow insecure connections to a host.
4650
- ///
4651
- /// Can be provided multiple times.
4652
- ///
4653
- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4654
- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4655
- ///
4656
- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4657
- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4658
- /// bypasses SSL verification and could expose you to MITM attacks.
4659
- #[ arg(
4660
- long,
4661
- alias = "trusted-host" ,
4662
- env = EnvVars :: UV_INSECURE_HOST ,
4663
- value_delimiter = ' ' ,
4664
- value_parser = parse_insecure_host,
4665
- ) ]
4666
- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4667
4570
}
4668
4571
4669
4572
/// See [PEP 517](https://peps.python.org/pep-0517/) and
0 commit comments