{"id":57434,"library":"defmt","title":"defmt","description":"A highly efficient logging framework that targets resource-constrained devices, like microcontrollers.","status":"active","version":"1.0.1","language":"rust","source_language":null,"source_url":"https://github.com/knurling-rs/defmt","tags":["logging","embedded","no-std","efficient","microcontroller"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndefmt = \"1.0.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add defmt","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"info","correct":"use defmt::info;"}],"quickstart":{"code":"use defmt::info;\n\nfn main() {\n    info!(\"Hello, defmt!\");\n}","lang":"rust","description":"Logs an info message using defmt's efficient logging macro."},"warnings":[{"fix":"Add a defmt backend like `defmt-rtt` and ensure your target supports it.","message":"Requires a defmt-compatible logger (e.g., defmt-rtt) and target hardware; does not work on standard desktop environments without a backend.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'constrain':11 'defmt':1 'devic':12 'effici':4,20 'embed':16 'framework':6 'high':3 'like':13 'log':5,15 'microcontrol':14,21 'no-std':17 'resourc':10 'resource-constrain':9 'std':19 'target':8","created_at":"2026-06-16T15:42:20.541389+00:00","updated_at":"2026-06-16T15:42:20.541389+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://knurling.ferrous-systems.com/","github":"https://github.com/knurling-rs/defmt","docs":"https://docs.rs/defmt/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["logging","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}