Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

Commit 177f9cf

Browse files
committed
remove newnit from derive package dependencies
1 parent 5cf358a commit 177f9cf

File tree

4 files changed

+11
-27
lines changed

4 files changed

+11
-27
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

newnit_derive/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ syn = "2.0"
1616
quote = "1.0"
1717
darling = "0.20.10"
1818
proc-macro2 = "1.0.93"
19-
20-
[dev-dependencies]
21-
newnit = { version = "0.1.0", path = "../newnit" }

newnit_derive/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod volume;
3333
/// value_in_base_unit = value_in_this_unit * `factor` + `offset`
3434
///
3535
/// # Examples:
36-
/// ```
36+
/// ```ignore
3737
/// use newnit::Unit;
3838
/// use newnit_derive::Unit;
3939
///
@@ -72,7 +72,7 @@ pub fn unit_derive(input: TokenStream) -> TokenStream {
7272
///
7373
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
7474
/// /// # Examples:
75-
/// ```
75+
/// ```ignore
7676
/// use newnit::{Unit, length::Length};
7777
/// use newnit_derive::{Length, Unit};
7878
///
@@ -112,7 +112,7 @@ pub fn length_derive(input: TokenStream) -> TokenStream {
112112
///
113113
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
114114
/// /// # Examples:
115-
/// ```
115+
/// ```ignore
116116
/// use newnit::{area::Area, Unit};
117117
/// use newnit_derive::{Area, Unit};
118118
///
@@ -152,7 +152,7 @@ pub fn area_derive(input: TokenStream) -> TokenStream {
152152
///
153153
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
154154
/// /// # Examples:
155-
/// ```
155+
/// ```ignore
156156
/// use newnit::{volume::Volume, Unit};
157157
/// use newnit_derive::{Volume, Unit};
158158
///
@@ -192,7 +192,7 @@ pub fn volume_derive(input: TokenStream) -> TokenStream {
192192
///
193193
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
194194
/// /// # Examples:
195-
/// ```
195+
/// ```ignore
196196
/// use newnit::{mass::Mass, Unit};
197197
/// use newnit_derive::{Mass, Unit};
198198
///
@@ -232,7 +232,7 @@ pub fn mass_derive(input: TokenStream) -> TokenStream {
232232
///
233233
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
234234
/// /// # Examples:
235-
/// ```
235+
/// ```ignore
236236
/// use newnit::{velocity::Velocity, Unit};
237237
/// use newnit_derive::{Velocity, Unit};
238238
///
@@ -272,7 +272,7 @@ pub fn velocity_derive(input: TokenStream) -> TokenStream {
272272
///
273273
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
274274
/// /// # Examples:
275-
/// ```
275+
/// ```ignore
276276
/// use newnit::{time::Time, Unit};
277277
/// use newnit_derive::{Time, Unit};
278278
///
@@ -312,7 +312,7 @@ pub fn time_derive(input: TokenStream) -> TokenStream {
312312
///
313313
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
314314
/// /// # Examples:
315-
/// ```
315+
/// ```ignore
316316
/// use newnit::{current::Current, Unit};
317317
/// use newnit_derive::{Current, Unit};
318318
///
@@ -352,7 +352,7 @@ pub fn current_derive(input: TokenStream) -> TokenStream {
352352
///
353353
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
354354
/// /// # Examples:
355-
/// ```
355+
/// ```ignore
356356
/// use newnit::{luminous_intensity::LuminousIntensity, Unit};
357357
/// use newnit_derive::{LuminousIntensity, Unit};
358358
///
@@ -392,7 +392,7 @@ pub fn luminous_intensity_derive(input: TokenStream) -> TokenStream {
392392
///
393393
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
394394
/// /// # Examples:
395-
/// ```
395+
/// ```ignore
396396
/// use newnit::{substance_amount::SubstanceAmount, Unit};
397397
/// use newnit_derive::{SubstanceAmount, Unit};
398398
///
@@ -432,7 +432,7 @@ pub fn substance_amount_derive(input: TokenStream) -> TokenStream {
432432
///
433433
/// by specifying them in an (optional) `#[quantity()]` macro attribute.
434434
/// /// # Examples:
435-
/// ```
435+
/// ```ignore
436436
/// use newnit::{temperature::Temperature, Unit};
437437
/// use newnit_derive::{Temperature, Unit};
438438
///

newnit_derive/tests/derive_unit_test.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)