Code works fine copy/pasted into my main.rs, but is ignored when run from its own external crate

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • delay

    arduino-like delay routines based on busy-wait loops (by avr-rust)

  • tl;dr I'm trying to figure out why the avr-delay::delay function doesn't seem to do anything when imported as an external crate, but when copy/pasting the code into my main.rs, it all works. Source code here https://github.com/avr-rust/delay

    I've ensured I'm doing a 1:1 test by importing the crate locally in my Cargo.toml, and I've tried hardcoding the CPU frequency on this line in my local copy of avr-delay just in case it was a problem with reading the env var that I'm setting or something.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts