| 1 |
[dev-dependencies.static_assertions] |
| 2 |
version = "1" |
| 3 |
|
| 4 |
[features] |
| 5 |
serde = ["dep:serde"] |
| 6 |
|
| 7 |
[lib] |
| 8 |
path = "src/lib.rs" |
| 9 |
|
| 10 |
[lints.clippy] |
| 11 |
absolute_paths = "warn" |
| 12 |
allow_attributes = "warn" |
| 13 |
allow_attributes_without_reason = "warn" |
| 14 |
as_conversions = "warn" |
| 15 |
assertions_on_result_states = "warn" |
| 16 |
clone_on_ref_ptr = "warn" |
| 17 |
create_dir = "warn" |
| 18 |
dbg_macro = "warn" |
| 19 |
decimal_literal_representation = "warn" |
| 20 |
default_union_representation = "warn" |
| 21 |
empty_drop = "warn" |
| 22 |
empty_structs_with_brackets = "warn" |
| 23 |
equatable_if_let = "allow" |
| 24 |
error_impl_error = "warn" |
| 25 |
exit = "warn" |
| 26 |
explicit_deref_methods = "allow" |
| 27 |
filetype_is_file = "warn" |
| 28 |
float_cmp_const = "warn" |
| 29 |
fn_to_numeric_cast_any = "warn" |
| 30 |
format_push_string = "warn" |
| 31 |
future_not_send = "allow" |
| 32 |
get_unwrap = "warn" |
| 33 |
if_then_some_else_none = "warn" |
| 34 |
impl_trait_in_params = "warn" |
| 35 |
indexing_slicing = "warn" |
| 36 |
infinite_loop = "warn" |
| 37 |
large_include_file = "warn" |
| 38 |
lossy_float_literal = "warn" |
| 39 |
min_ident_chars = "warn" |
| 40 |
missing_assert_message = "warn" |
| 41 |
missing_asserts_for_indexing = "warn" |
| 42 |
missing_docs_in_private_items = "warn" |
| 43 |
mixed_read_write_in_expression = "warn" |
| 44 |
module_inception = "allow" |
| 45 |
module_name_repetitions = "allow" |
| 46 |
mutex_atomic = "warn" |
| 47 |
non_ascii_literal = "warn" |
| 48 |
option_if_let_else = "allow" |
| 49 |
partial_pub_fields = "warn" |
| 50 |
print_stderr = "warn" |
| 51 |
print_stdout = "warn" |
| 52 |
pub_without_shorthand = "warn" |
| 53 |
rc_buffer = "warn" |
| 54 |
rc_mutex = "warn" |
| 55 |
redundant_pub_crate = "allow" |
| 56 |
redundant_type_annotations = "warn" |
| 57 |
ref_patterns = "warn" |
| 58 |
rest_pat_in_fully_bound_structs = "warn" |
| 59 |
same_name_method = "warn" |
| 60 |
self_named_module_files = "warn" |
| 61 |
semicolon_outside_block = "warn" |
| 62 |
single_char_lifetime_names = "warn" |
| 63 |
str_to_string = "warn" |
| 64 |
string_add = "warn" |
| 65 |
string_lit_chars_any = "warn" |
| 66 |
string_slice = "warn" |
| 67 |
string_to_string = "warn" |
| 68 |
suspicious_xor_used_as_pow = "warn" |
| 69 |
tabs_in_doc_comments = "allow" |
| 70 |
todo = "warn" |
| 71 |
try_err = "warn" |
| 72 |
undocumented_unsafe_blocks = "warn" |
| 73 |
unimplemented = "warn" |
| 74 |
unnecessary_safety_doc = "warn" |
| 75 |
unnecessary_self_imports = "warn" |
| 76 |
unneeded_field_pattern = "warn" |
| 77 |
unseparated_literal_suffix = "warn" |
| 78 |
unwrap_used = "warn" |
| 79 |
use_debug = "warn" |
| 80 |
verbose_file_reads = "warn" |
| 81 |
|
| 82 |
[lints.clippy.cargo] |
| 83 |
level = "warn" |
| 84 |
priority = -1 |
| 85 |
|
| 86 |
[lints.clippy.nursery] |
| 87 |
level = "warn" |
| 88 |
priority = -1 |
| 89 |
|
| 90 |
[lints.clippy.pedantic] |
| 91 |
level = "warn" |
| 92 |
priority = -1 |
| 93 |
|
| 94 |
[lints.rust] |
| 95 |
deprecated_in_future = "warn" |
| 96 |
ffi_unwind_calls = "warn" |
| 97 |
macro_use_extern_crate = "warn" |
| 98 |
meta_variable_misuse = "warn" |
| 99 |
missing_abi = "warn" |
| 100 |
missing_copy_implementations = "warn" |
| 101 |
missing_debug_implementations = "warn" |
| 102 |
missing_docs = "warn" |
| 103 |
non_ascii_idents = "warn" |
| 104 |
single_use_lifetimes = "warn" |
| 105 |
trivial_casts = "warn" |
| 106 |
trivial_numeric_casts = "warn" |
| 107 |
unreachable_pub = "warn" |
| 108 |
unsafe_code = "deny" |
| 109 |
unsafe_op_in_unsafe_fn = "warn" |
| 110 |
unused_import_braces = "warn" |
| 111 |
unused_lifetimes = "warn" |
| 112 |
unused_qualifications = "warn" |
| 113 |
|
| 114 |
[lints.rust.future_incompatible] |
| 115 |
level = "warn" |
| 116 |
priority = -1 |
| 117 |
|
| 118 |
[lints.rust.rust_2018_compatibility] |
| 119 |
level = "warn" |
| 120 |
priority = -1 |
| 121 |
|
| 122 |
[lints.rust.rust_2018_idioms] |
| 123 |
level = "warn" |
| 124 |
priority = -1 |
| 125 |
|
| 126 |
[lints.rust.rust_2021_compatibility] |
| 127 |
level = "warn" |
| 128 |
priority = -1 |
| 129 |
|
| 130 |
[lints.rust.unused] |
| 131 |
level = "warn" |
| 132 |
priority = -1 |
| 133 |
|
| 134 |
[lints.rustdoc.all] |
| 135 |
level = "warn" |
| 136 |
priority = -1 |
| 137 |
|
| 138 |
[package] |
| 139 |
autobenches = false |
| 140 |
categories = ["api-bindings", "date-and-time", "wasm"] |
| 141 |
description = "Drop-in replacement for std::time for Wasm in browsers" |
| 142 |
edition = "2021" |
| 143 |
include = ["CHANGELOG.md", "LICENSE-*", "src/**/*"] |
| 144 |
keywords = ["instant", "wasm", "web", "systemtime", "time"] |
| 145 |
license = "MIT OR Apache-2.0" |
| 146 |
name = "web-time" |
| 147 |
readme = "README.md" |
| 148 |
repository = "https://github.com/daxpedda/web-time" |
| 149 |
rust-version = "1.60" |
| 150 |
version = "1.1.0" |
| 151 |
|
| 152 |
[package.metadata.docs.rs] |
| 153 |
all-features = true |
| 154 |
rustdoc-args = ["--cfg=docsrs"] |
| 155 |
targets = ["wasm32-unknown-unknown"] |
| 156 |
|
| 157 |
[profile.bench] |
| 158 |
codegen-units = 1 |
| 159 |
lto = true |
| 160 |
|
| 161 |
[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dev-dependencies.futures-channel] |
| 162 |
default-features = false |
| 163 |
features = ["alloc"] |
| 164 |
version = "0.3" |
| 165 |
|
| 166 |
[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dev-dependencies.futures-util] |
| 167 |
default-features = false |
| 168 |
version = "0.3" |
| 169 |
|
| 170 |
[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dev-dependencies.web-sys] |
| 171 |
features = ["WorkerGlobalScope"] |
| 172 |
version = "0.3" |
| 173 |
|
| 174 |
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.js-sys] |
| 175 |
version = "0.3.20" |
| 176 |
|
| 177 |
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.serde] |
| 178 |
optional = true |
| 179 |
version = "1" |
| 180 |
|
| 181 |
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.wasm-bindgen] |
| 182 |
default-features = false |
| 183 |
version = "0.2.70" |
| 184 |
|
| 185 |
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.pollster] |
| 186 |
features = ["macro"] |
| 187 |
version = "0.3" |
| 188 |
|
| 189 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.getrandom] |
| 190 |
features = ["js"] |
| 191 |
version = "0.2" |
| 192 |
|
| 193 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.rand] |
| 194 |
version = "0.8" |
| 195 |
|
| 196 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.serde_json] |
| 197 |
version = "1" |
| 198 |
|
| 199 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-futures] |
| 200 |
version = "0.4" |
| 201 |
|
| 202 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-test] |
| 203 |
version = "0.3" |
| 204 |
|
| 205 |
[target.'cfg(target_family = "wasm")'.dev-dependencies.web-sys] |
| 206 |
features = ["CssStyleDeclaration", "Document", "Element", "HtmlTableElement", "HtmlTableRowElement", "Performance", "Window"] |
| 207 |
version = "0.3" |