| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.76.0" |
| 15 |
name = "mtu" |
| 16 |
version = "0.2.6" |
| 17 |
authors = ["The Mozilla Necko Team <[email protected]>"] |
| 18 |
build = "build.rs" |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "Obtain the local network interface MTU towards a given IP address." |
| 25 |
homepage = "https://github.com/mozilla/mtu/" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"mozilla", |
| 29 |
"interface", |
| 30 |
"mtu", |
| 31 |
] |
| 32 |
categories = [ |
| 33 |
"network-programming", |
| 34 |
"web-programming", |
| 35 |
] |
| 36 |
license = "MIT OR Apache-2.0" |
| 37 |
repository = "https://github.com/mozilla/mtu/" |
| 38 |
|
| 39 |
[lib] |
| 40 |
name = "mtu" |
| 41 |
path = "src/lib.rs" |
| 42 |
|
| 43 |
[dependencies.libc] |
| 44 |
version = "0.2" |
| 45 |
default-features = false |
| 46 |
|
| 47 |
[dependencies.static_assertions] |
| 48 |
version = "1.1" |
| 49 |
default-features = false |
| 50 |
|
| 51 |
[build-dependencies.bindgen] |
| 52 |
version = "0.69" |
| 53 |
features = ["runtime"] |
| 54 |
default-features = false |
| 55 |
|
| 56 |
[build-dependencies.cfg_aliases] |
| 57 |
version = "0.2" |
| 58 |
default-features = false |
| 59 |
|
| 60 |
[build-dependencies.mozbuild] |
| 61 |
version = "0.1" |
| 62 |
optional = true |
| 63 |
default-features = false |
| 64 |
|
| 65 |
[features] |
| 66 |
gecko = ["dep:mozbuild"] |
| 67 |
|
| 68 |
[target."cfg(windows)".dependencies.windows] |
| 69 |
version = ">=0.58,<0.60" |
| 70 |
features = [ |
| 71 |
"Win32_Foundation", |
| 72 |
"Win32_NetworkManagement_IpHelper", |
| 73 |
"Win32_NetworkManagement_Ndis", |
| 74 |
"Win32_Networking_WinSock", |
| 75 |
] |
| 76 |
|
| 77 |
[badges.codecov] |
| 78 |
branch = "main" |
| 79 |
repository = "mozilla/mtu" |
| 80 |
|
| 81 |
[badges.is-it-maintained-issue-resolution] |
| 82 |
branch = "main" |
| 83 |
repository = "mozilla/mtu" |
| 84 |
|
| 85 |
[badges.is-it-maintained-open-issues] |
| 86 |
branch = "main" |
| 87 |
repository = "mozilla/mtu" |
| 88 |
|
| 89 |
[badges.maintenance] |
| 90 |
branch = "main" |
| 91 |
status = "actively-developed" |
| 92 |
|
| 93 |
[lints.clippy] |
| 94 |
cfg_not_test = "warn" |
| 95 |
clone_on_ref_ptr = "warn" |
| 96 |
create_dir = "warn" |
| 97 |
get_unwrap = "warn" |
| 98 |
if_then_some_else_none = "warn" |
| 99 |
multiple_crate_versions = "allow" |
| 100 |
multiple_inherent_impl = "warn" |
| 101 |
pathbuf_init_then_push = "warn" |
| 102 |
redundant_type_annotations = "warn" |
| 103 |
ref_patterns = "warn" |
| 104 |
renamed_function_params = "warn" |
| 105 |
semicolon_inside_block = "warn" |
| 106 |
try_err = "warn" |
| 107 |
unneeded_field_pattern = "warn" |
| 108 |
unused_result_ok = "warn" |
| 109 |
unused_trait_names = "warn" |
| 110 |
unwrap_in_result = "warn" |
| 111 |
unwrap_used = "warn" |
| 112 |
|
| 113 |
[lints.clippy.cargo] |
| 114 |
level = "warn" |
| 115 |
priority = -1 |
| 116 |
|
| 117 |
[lints.clippy.nursery] |
| 118 |
level = "warn" |
| 119 |
priority = -1 |
| 120 |
|
| 121 |
[lints.clippy.pedantic] |
| 122 |
level = "warn" |
| 123 |
priority = -1 |
| 124 |
|
| 125 |
[lints.rust] |
| 126 |
absolute_paths_not_starting_with_crate = "warn" |
| 127 |
ambiguous_negative_literals = "warn" |
| 128 |
closure_returning_async_block = "warn" |
| 129 |
explicit_outlives_requirements = "warn" |
| 130 |
macro_use_extern_crate = "warn" |
| 131 |
missing_abi = "warn" |
| 132 |
non_ascii_idents = "warn" |
| 133 |
redundant_imports = "warn" |
| 134 |
redundant_lifetimes = "warn" |
| 135 |
trivial_numeric_casts = "warn" |
| 136 |
unit_bindings = "warn" |
| 137 |
unused_import_braces = "warn" |
| 138 |
unused_lifetimes = "warn" |
| 139 |
unused_macro_rules = "warn" |