From 546c389b9bc0286b00fd4a24fba0398c9ad1b69b Mon Sep 17 00:00:00 2001 From: tison Date: Sun, 11 Aug 2024 16:44:20 +0800 Subject: [PATCH] chore: update crate metadata to reflect the transfer Signed-off-by: tison --- .github/semantic.yml | 4 ++-- .github/workflows/ci.yml | 2 +- Cargo.toml | 29 +++++++++++++++---------- README.md | 4 ++-- examples/fn_layout_filter.rs | 2 +- examples/json_stdio.rs | 2 +- examples/rolling_file.rs | 2 +- examples/simple_stdio.rs | 2 +- licenserc.toml | 4 ++-- rust-toolchain.toml | 2 +- rustfmt.toml | 2 +- src/append/fastrace.rs | 2 +- src/append/mod.rs | 2 +- src/append/opentelemetry.rs | 2 +- src/append/rolling_file/append.rs | 2 +- src/append/rolling_file/clock.rs | 2 +- src/append/rolling_file/mod.rs | 2 +- src/append/rolling_file/non_blocking.rs | 2 +- src/append/rolling_file/rolling.rs | 2 +- src/append/rolling_file/rotation.rs | 2 +- src/append/rolling_file/worker.rs | 2 +- src/append/stdio.rs | 2 +- src/filter/custom.rs | 2 +- src/filter/level.rs | 2 +- src/filter/mod.rs | 2 +- src/layout/custom.rs | 2 +- src/layout/identical.rs | 2 +- src/layout/json.rs | 2 +- src/layout/kv.rs | 2 +- src/layout/mod.rs | 2 +- src/layout/text.rs | 2 +- src/lib.rs | 4 ++-- src/logger.rs | 2 +- taplo.toml | 2 +- typos.toml | 2 +- 35 files changed, 56 insertions(+), 49 deletions(-) diff --git a/.github/semantic.yml b/.github/semantic.yml index 082479d..890ca4f 100644 --- a/.github/semantic.yml +++ b/.github/semantic.yml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,4 +39,4 @@ types: - chore - revert -targetUrl: https://github.com/tisonkun/logforth/blob/main/.github/semantic.yml +targetUrl: https://github.com/cratesland/logforth/blob/main/.github/semantic.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 802c04c..3033336 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/Cargo.toml b/Cargo.toml index a5a2c3a..84042a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ [package] name = "logforth" -authors = ["tison "] +authors = ["CratesLand Developers"] description = "A versatile and extensible logging implementation." edition = "2021" -homepage = "https://github.com/tisonkun/logforth" +homepage = "https://github.com/cratesland/logforth" license = "Apache-2.0" readme = "README.md" -repository = "https://github.com/tisonkun/logforth" +repository = "https://github.com/cratesland/logforth" rust-version = "1.71.0" version = "0.8.0" @@ -46,23 +46,30 @@ rolling_file = ["dep:crossbeam-channel", "dep:parking_lot", "dep:time"] [dependencies] anyhow = { version = "1.0" } colored = { version = "2.1" } -crossbeam-channel = { version = "0.5", optional = true } humantime = { version = "2.1" } log = { version = "0.4", features = ["std", "kv_unstable"] } -parking_lot = { version = "0.12", optional = true } paste = { version = "1.0" } serde = { version = "1.0", features = ["derive"], optional = true } serde_json = { version = "1.0", optional = true } -time = { version = "0.3", features = [ - "formatting", - "parsing", - "macros", -], optional = true } [dev-dependencies] rand = "0.8.5" tempfile = "3.3" +## Rolling file dependencies +[dependencies.crossbeam-channel] +optional = true +version = "0.5" + +[dependencies.parking_lot] +optional = true +version = "0.12" + +[dependencies.time] +optional = true +version = "0.3" +features = ["formatting", "parsing", "macros"] + ## Fastrace dependencies [dependencies.fastrace] optional = true diff --git a/README.md b/README.md index 2cc8b84..e261112 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ [docs-url]: https://docs.rs/logforth [license-badge]: https://img.shields.io/crates/l/logforth [license-url]: LICENSE -[actions-badge]: https://github.com/tisonkun/logforth/workflows/CI/badge.svg -[actions-url]:https://github.com/tisonkun/logforth/actions?query=workflow%3ACI +[actions-badge]: https://github.com/cratesland/logforth/workflows/CI/badge.svg +[actions-url]:https://github.com/cratesland/logforth/actions?query=workflow%3ACI ## Overview diff --git a/examples/fn_layout_filter.rs b/examples/fn_layout_filter.rs index cf079be..01f056f 100644 --- a/examples/fn_layout_filter.rs +++ b/examples/fn_layout_filter.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/examples/json_stdio.rs b/examples/json_stdio.rs index 59a1658..9f500ab 100644 --- a/examples/json_stdio.rs +++ b/examples/json_stdio.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/examples/rolling_file.rs b/examples/rolling_file.rs index c6bef14..4686b59 100644 --- a/examples/rolling_file.rs +++ b/examples/rolling_file.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/examples/simple_stdio.rs b/examples/simple_stdio.rs index 55cb772..350bba0 100644 --- a/examples/simple_stdio.rs +++ b/examples/simple_stdio.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/licenserc.toml b/licenserc.toml index 88827c5..0e76d37 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,5 +17,5 @@ headerPath = "Apache-2.0.txt" includes = ['**/*.proto', '**/*.rs', '**/*.yml', '**/*.yaml', '**/*.toml'] [properties] -copyrightOwner = "tison " +copyrightOwner = "CratesLand Developers" inceptionYear = 2024 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 093997d..d2159ed 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/rustfmt.toml b/rustfmt.toml index bf58561..f9cc660 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/append/fastrace.rs b/src/append/fastrace.rs index dddb82c..e6dd71c 100644 --- a/src/append/fastrace.rs +++ b/src/append/fastrace.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/mod.rs b/src/append/mod.rs index dac6750..cae7de4 100644 --- a/src/append/mod.rs +++ b/src/append/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/opentelemetry.rs b/src/append/opentelemetry.rs index a4cba41..d5088ac 100644 --- a/src/append/opentelemetry.rs +++ b/src/append/opentelemetry.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/append.rs b/src/append/rolling_file/append.rs index 17ba095..d2919a4 100644 --- a/src/append/rolling_file/append.rs +++ b/src/append/rolling_file/append.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/clock.rs b/src/append/rolling_file/clock.rs index 4b33e38..d23e2f5 100644 --- a/src/append/rolling_file/clock.rs +++ b/src/append/rolling_file/clock.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/mod.rs b/src/append/rolling_file/mod.rs index 903364a..a59b64a 100644 --- a/src/append/rolling_file/mod.rs +++ b/src/append/rolling_file/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/non_blocking.rs b/src/append/rolling_file/non_blocking.rs index 0508e39..b73faee 100644 --- a/src/append/rolling_file/non_blocking.rs +++ b/src/append/rolling_file/non_blocking.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/rolling.rs b/src/append/rolling_file/rolling.rs index 74f039f..8c7242d 100644 --- a/src/append/rolling_file/rolling.rs +++ b/src/append/rolling_file/rolling.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/rotation.rs b/src/append/rolling_file/rotation.rs index 3af92b1..37b25f4 100644 --- a/src/append/rolling_file/rotation.rs +++ b/src/append/rolling_file/rotation.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/rolling_file/worker.rs b/src/append/rolling_file/worker.rs index 7845a18..c5b9523 100644 --- a/src/append/rolling_file/worker.rs +++ b/src/append/rolling_file/worker.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/append/stdio.rs b/src/append/stdio.rs index b010fdd..073a23f 100644 --- a/src/append/stdio.rs +++ b/src/append/stdio.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/filter/custom.rs b/src/filter/custom.rs index ebbba0c..8958514 100644 --- a/src/filter/custom.rs +++ b/src/filter/custom.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/filter/level.rs b/src/filter/level.rs index dd4b04d..4cdc0ca 100644 --- a/src/filter/level.rs +++ b/src/filter/level.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/filter/mod.rs b/src/filter/mod.rs index a7fa944..5dc41a7 100644 --- a/src/filter/mod.rs +++ b/src/filter/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/custom.rs b/src/layout/custom.rs index b0a2de9..5fff277 100644 --- a/src/layout/custom.rs +++ b/src/layout/custom.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/identical.rs b/src/layout/identical.rs index 68b676a..5712dd5 100644 --- a/src/layout/identical.rs +++ b/src/layout/identical.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/json.rs b/src/layout/json.rs index 70af646..d1f4a1c 100644 --- a/src/layout/json.rs +++ b/src/layout/json.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/kv.rs b/src/layout/kv.rs index 57eee61..670ed8f 100644 --- a/src/layout/kv.rs +++ b/src/layout/kv.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 261335e..79ff0e6 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/layout/text.rs b/src/layout/text.rs index 589812a..69d5180 100644 --- a/src/layout/text.rs +++ b/src/layout/text.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/lib.rs b/src/lib.rs index 8af14dc..0bbfdd2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ //! log::trace!("Hello trace!"); //! ``` //! -//! Read more demos under the [examples](https://github.com/tisonkun/logforth/tree/main/examples) directory. +//! Read more demos under the [examples](https://github.com/cratesland/logforth/tree/main/examples) directory. pub mod append; pub mod filter; diff --git a/src/logger.rs b/src/logger.rs index 3a219d4..b1d1cef 100644 --- a/src/logger.rs +++ b/src/logger.rs @@ -1,4 +1,4 @@ -// Copyright 2024 tison +// Copyright 2024 CratesLand Developers // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/taplo.toml b/taplo.toml index b856805..e722d86 100644 --- a/taplo.toml +++ b/taplo.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/typos.toml b/typos.toml index 0047e38..5288ad5 100644 --- a/typos.toml +++ b/typos.toml @@ -1,4 +1,4 @@ -# Copyright 2024 tison +# Copyright 2024 CratesLand Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.