{"id":26027780,"url":"https://github.com/biluohc/stderr","last_synced_at":"2025-09-11T14:21:28.619Z","repository":{"id":57668600,"uuid":"77324742","full_name":"biluohc/stderr","owner":"biluohc","description":"A library that using macro to write to io::stderr() like print!/println! for Rust.","archived":false,"fork":false,"pushed_at":"2017-08-13T09:26:34.000Z","size":40,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T03:15:45.356Z","etag":null,"topics":["debug","macro","rust","static","stderr"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/stderr","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biluohc.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-25T12:23:43.000Z","updated_at":"2017-10-02T00:48:59.000Z","dependencies_parsed_at":"2022-08-27T01:40:42.809Z","dependency_job_id":null,"html_url":"https://github.com/biluohc/stderr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biluohc%2Fstderr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biluohc%2Fstderr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biluohc%2Fstderr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biluohc%2Fstderr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biluohc","download_url":"https://codeload.github.com/biluohc/stderr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250925,"owners_count":20096895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","macro","rust","static","stderr"],"created_at":"2025-03-06T16:57:29.512Z","updated_at":"2025-03-06T16:57:30.141Z","avatar_url":"https://github.com/biluohc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://travis-ci.org/biluohc/stderr.svg?branch=master)](https://github.com/biluohc/stderr)\n[![Latest version](https://img.shields.io/crates/v/stderr.svg)](https://crates.io/crates/stderr)\n[![All downloads](https://img.shields.io/crates/d/stderr.svg)](https://crates.io/crates/stderr)\n[![Downloads of latest version](https://img.shields.io/crates/dv/stderr.svg)](https://crates.io/crates/stderr)\n[![Documentation](https://docs.rs/stderr/badge.svg)](https://docs.rs/stderr)\n\n# [stderr](https://github.com/biluohc/stderr)\n  A library that using macro to write to `io::stderr()` like `print!()/println!()` for rust.\n\n# Usage\n\n On Cargo.toml:\n\n ```toml\n  [dependencies]\n  stderr = \"0.8.1\"\n ```\n\n# About stderr\nUsage as same as `print!/println!`.\n\n1. `err!`/`errln!`: Panics if writing to `io::stderr()` fails.\n2. `errst!`/`errstln!`: Do nothing if writing to `io::stderr()` fails(silent-\u003est).\n\n\n# Example\n\n```Rust\n#[macro_use]\nextern crate stderr;\n\nfn main() {\n  println!(\"err!/errln!/errst!/errstln!()@stderr !\");\n  let vec = vec![1, 2, 3, 4, 5];\n  let s = std::env::args().nth(0).unwrap();\n\n  err!(\"err!(expr\\\\n)\\n\");\n  err!(\"err!(String: vec![1, 2, 3, 4, 5])\\n{}: {:?}\", s, vec);\n  errln!();\n  errln!(\"errln!(expr)\");\n\n  println!();\n\n  errst!(\"errst!(expr\\\\n)\\n\");\n  errst!(\"errst!(String: vec![1, 2, 3, 4, 5])\\n{}: {:?}\", s, vec);\n  errstln!();\n  errstln!(\"errstln!(expr)\");\n}\n```\n# If you only need `errxxx` and don't want be polluted by other macros, you can: \n* use v0.3.0(The part has been stable since this version)\n\nOn Cargo.toml:\n\n```toml\n  [dependencies]\n  stderr = \"0.3.0\"\n```\n\n## Or\n\n* Only import you need by `macro_use`\n\nOn Code:\n\n```rust\n  #[macro_use(err,errln,errst,errstln)]\n  extern crate stderr;\n```\n\n# About `StaticMut` or `log::*`, please read [document](https://docs.rs/stderr)\n\n## ChangLog\n2017-0813 **0.8.1** remove `-log`\n\n2017-0530 **0.8.0** `log::*, StaticMut`\n\n2017-0424 **0.7.1** `loc!()` and `Loger::init(module_path!())`\n\n2017-0211 **0.7.0** Supports multiple packages.\n\n2017-0126 **0.6.1** Don't repeat initialization,fix #2.\n\n2017-0126 **0.6.0** Refactoring and update API to `stderr::Loger; init!(),db!(),dbln!(),dbst!(),dbstln!()` for `LOG=module_path!()` and `--log/-log module_path!()`,add Documentation.\n\n2017-0116 __0.5.0__ Add `stderr::loger::Loger;init(), debug!(),debugln!(),debugst!(),debugstln!()` for `LOG=debug` and `--log/-log debug`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiluohc%2Fstderr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiluohc%2Fstderr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiluohc%2Fstderr/lists"}