| 1 | [dependencies.critical-section] |
| 2 | optional = true |
| 3 | version = "1" |
| 4 | |
| 5 | [dependencies.serde] |
| 6 | default-features = false |
| 7 | optional = true |
| 8 | version = "1.0.60" |
| 9 | |
| 10 | [dev-dependencies.build-context] |
| 11 | version = "0.1" |
| 12 | |
| 13 | [dev-dependencies.crossbeam-utils] |
| 14 | version = "=0.8.16" |
| 15 | |
| 16 | [dev-dependencies.fastrand] |
| 17 | version = "2" |
| 18 | |
| 19 | [dev-dependencies.paste] |
| 20 | version = "1" |
| 21 | |
| 22 | [dev-dependencies.quickcheck] |
| 23 | default-features = false |
| 24 | version = "1" |
| 25 | |
| 26 | [dev-dependencies.rustversion] |
| 27 | version = "1" |
| 28 | |
| 29 | [dev-dependencies.sptr] |
| 30 | version = "0.3" |
| 31 | |
| 32 | [dev-dependencies.static_assertions] |
| 33 | version = "1" |
| 34 | |
| 35 | [features] |
| 36 | default = ["fallback"] |
| 37 | disable-fiq = [] |
| 38 | fallback = [] |
| 39 | float = [] |
| 40 | force-amo = [] |
| 41 | require-cas = [] |
| 42 | s-mode = [] |
| 43 | std = [] |
| 44 | unsafe-assume-privileged = [] |
| 45 | unsafe-assume-single-core = [] |
| 46 | |
| 47 | [lib] |
| 48 | doc-scrape-examples = false |
| 49 | name = "portable_atomic" |
| 50 | path = "src/lib.rs" |
| 51 | |
| 52 | [lints.clippy] |
| 53 | all = "warn" |
| 54 | as_ptr_cast_mut = "warn" |
| 55 | as_underscore = "warn" |
| 56 | default_union_representation = "warn" |
| 57 | inline_asm_x86_att_syntax = "warn" |
| 58 | pedantic = "warn" |
| 59 | trailing_empty_array = "warn" |
| 60 | transmute_undefined_repr = "warn" |
| 61 | undocumented_unsafe_blocks = "warn" |
| 62 | unused_trait_names = "warn" |
| 63 | |
| 64 | [lints.clippy.bool_assert_comparison] |
| 65 | level = "allow" |
| 66 | priority = 1 |
| 67 | |
| 68 | [lints.clippy.borrow_as_ptr] |
| 69 | level = "allow" |
| 70 | priority = 1 |
| 71 | |
| 72 | [lints.clippy.cast_lossless] |
| 73 | level = "allow" |
| 74 | priority = 1 |
| 75 | |
| 76 | [lints.clippy.declare_interior_mutable_const] |
| 77 | level = "allow" |
| 78 | priority = 1 |
| 79 | |
| 80 | [lints.clippy.doc_markdown] |
| 81 | level = "allow" |
| 82 | priority = 1 |
| 83 | |
| 84 | [lints.clippy.float_cmp] |
| 85 | level = "allow" |
| 86 | priority = 1 |
| 87 | |
| 88 | [lints.clippy.incompatible_msrv] |
| 89 | level = "allow" |
| 90 | priority = 1 |
| 91 | |
| 92 | [lints.clippy.lint_groups_priority] |
| 93 | level = "allow" |
| 94 | priority = 1 |
| 95 | |
| 96 | [lints.clippy.manual_assert] |
| 97 | level = "allow" |
| 98 | priority = 1 |
| 99 | |
| 100 | [lints.clippy.manual_range_contains] |
| 101 | level = "allow" |
| 102 | priority = 1 |
| 103 | |
| 104 | [lints.clippy.missing_errors_doc] |
| 105 | level = "allow" |
| 106 | priority = 1 |
| 107 | |
| 108 | [lints.clippy.module_name_repetitions] |
| 109 | level = "allow" |
| 110 | priority = 1 |
| 111 | |
| 112 | [lints.clippy.naive_bytecount] |
| 113 | level = "allow" |
| 114 | priority = 1 |
| 115 | |
| 116 | [lints.clippy.nonminimal_bool] |
| 117 | level = "allow" |
| 118 | priority = 1 |
| 119 | |
| 120 | [lints.clippy.range_plus_one] |
| 121 | level = "allow" |
| 122 | priority = 1 |
| 123 | |
| 124 | [lints.clippy.similar_names] |
| 125 | level = "allow" |
| 126 | priority = 1 |
| 127 | |
| 128 | [lints.clippy.single_match] |
| 129 | level = "allow" |
| 130 | priority = 1 |
| 131 | |
| 132 | [lints.clippy.single_match_else] |
| 133 | level = "allow" |
| 134 | priority = 1 |
| 135 | |
| 136 | [lints.clippy.struct_excessive_bools] |
| 137 | level = "allow" |
| 138 | priority = 1 |
| 139 | |
| 140 | [lints.clippy.struct_field_names] |
| 141 | level = "allow" |
| 142 | priority = 1 |
| 143 | |
| 144 | [lints.clippy.too_many_arguments] |
| 145 | level = "allow" |
| 146 | priority = 1 |
| 147 | |
| 148 | [lints.clippy.too_many_lines] |
| 149 | level = "allow" |
| 150 | priority = 1 |
| 151 | |
| 152 | [lints.clippy.type_complexity] |
| 153 | level = "allow" |
| 154 | priority = 1 |
| 155 | |
| 156 | [lints.clippy.unreadable_literal] |
| 157 | level = "allow" |
| 158 | priority = 1 |
| 159 | |
| 160 | [lints.rust] |
| 161 | deprecated_safe = "warn" |
| 162 | improper_ctypes = "warn" |
| 163 | improper_ctypes_definitions = "warn" |
| 164 | non_ascii_idents = "warn" |
| 165 | rust_2018_idioms = "warn" |
| 166 | single_use_lifetimes = "warn" |
| 167 | unnameable_types = "warn" |
| 168 | unreachable_pub = "warn" |
| 169 | |
| 170 | [lints.rust.unexpected_cfgs] |
| 171 | check-cfg = ['cfg(target_arch,values("xtensa"))', 'cfg(target_arch,values("amdgpu"))', 'cfg(target_arch,values("loongarch32"))', 'cfg(target_os,values("trusty"))', 'cfg(target_os,values("psx"))', 'cfg(target_env,values("psx"))', 'cfg(target_feature,values("lse2","lse128","rcpc3"))', 'cfg(target_feature,values("quadword-atomics"))', 'cfg(target_feature,values("zaamo","zabha"))', 'cfg(target_feature,values("zacas"))', 'cfg(target_feature,values("miscellaneous-extensions-3"))', 'cfg(target_pointer_width,values("128"))', "cfg(portable_atomic_no_outline_atomics,portable_atomic_outline_atomics,portable_atomic_unstable_f16,portable_atomic_unstable_f128)", "cfg(portable_atomic_unstable_coerce_unsized)", "cfg(portable_atomic_test_detect_false,portable_atomic_test_no_std_static_assert_ffi,qemu,valgrind)"] |
| 172 | level = "warn" |
| 173 | priority = 0 |
| 174 | |
| 175 | [package] |
| 176 | autobenches = false |
| 177 | autobins = false |
| 178 | autoexamples = false |
| 179 | autolib = false |
| 180 | autotests = false |
| 181 | categories = ["concurrency", "embedded", "hardware-support", "no-std", "no-std::no-alloc"] |
| 182 | description = """ |
| 183 | Portable atomic types including support for 128-bit atomics, atomic float, etc. |
| 184 | """ |
| 185 | edition = "2018" |
| 186 | exclude = ["/.*", "/tools", "/target-specs", "/DEVELOPMENT.md"] |
| 187 | keywords = ["atomic"] |
| 188 | license = "Apache-2.0 OR MIT" |
| 189 | name = "portable-atomic" |
| 190 | readme = "README.md" |
| 191 | repository = "https://github.com/taiki-e/portable-atomic" |
| 192 | rust-version = "1.34" |
| 193 | version = "1.13.0" |
| 194 | |
| 195 | [package.metadata.cargo_check_external_types] |
| 196 | allowed_external_types = ["serde_core::*"] |
| 197 | |
| 198 | [package.metadata.docs.rs] |
| 199 | features = ["float", "std", "serde", "critical-section"] |
| 200 | rustdoc-args = ["--extend-css", "src/rustdoc.css", "--cfg", "portable_atomic_unstable_f16", "--cfg", "portable_atomic_unstable_f128"] |
| 201 | targets = ["x86_64-unknown-linux-gnu"] |
| 202 | |
| 203 | [profile.release] |
| 204 | debug = 2 |
| 205 | |
| 206 | [target."cfg(unix)".dev-dependencies.libc] |
| 207 | version = "=0.2.163" |
| 208 | |
| 209 | [target."cfg(valgrind)".dev-dependencies.crabgrind] |
| 210 | version = "0.1" |
| 211 | |
| 212 | [target."cfg(windows)".dev-dependencies.windows-sys] |
| 213 | features = ["Win32_Foundation", "Win32_System_Threading"] |
| 214 | version = "0.61" |