Rust Cookbook

Development Tools

Debugging

RecipeCratesCategories
Log a debug message to the consolelog-badge env_logger-badgecat-debugging-badge
Log an error message to the consolelog-badge env_logger-badgecat-debugging-badge
Log to stdout instead of stderrlog-badge env_logger-badgecat-debugging-badge
Log messages with a custom loggerlog-badgecat-debugging-badge
Log to the Unix sysloglog-badge syslog-badgecat-debugging-badge
Enable log levels per modulelog-badge env_logger-badgecat-debugging-badge
Use a custom environment variable to set up logginglog-badge env_logger-badgecat-debugging-badge
Include timestamp in log messageslog-badge env_logger-badge chrono-badgecat-debugging-badge
Log messages to a custom locationlog-badge log4rs-badgecat-debugging-badge

Versioning

RecipeCratesCategories
Parse and increment a version stringsemver-badgecat-config-badge
Parse a complex version stringsemver-badgecat-config-badge
Check if given version is pre-releasesemver-badgecat-config-badge
Find the latest version satisfying given rangesemver-badgecat-config-badge
Check external command version for compatibilitysemver-badgecat-text-processing-badge cat-os-badge

Build Time

RecipeCratesCategories
Compile and link statically to a bundled C librarycc-badgecat-development-tools-badge
Compile and link statically to a bundled C++ librarycc-badgecat-development-tools-badge
Compile a C library while setting custom definescc-badgecat-development-tools-badge