A crate from crates.io is imported by its name: cargo:semver is the semver crate.
crossbind.config.js lists the crate with its version, and main.js imports the crate's own types. VersionReq::parse is VersionReq.parse; it returns a Result, so a requirement it cannot read throws.
crossbind reads the crate's public API as it reads a Rust file of yours: no wrapper crate and no attributes. Not every crate fits; crates.io says what binds.
Try it
Change the requirement to >=1.0, <1.4. Then give VersionReq.parse a text that is no requirement and catch the error.