syntect: onig crate doesn't link properly for examples on Windows

How to build the examples?

I am on the examples folder doing rustc syncat.rs --extern syntect=.\..\target\debug\libsyntect.rlib and it is resulting:

error[E0463]: can't find crate for `yaml_rust` which `syntect` depends on
 --> syncat.rs:1:1
  |
1 | extern crate syntect;
  | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

It is seems to be asking for all the crates syntect depends on. Thought it looks like a lot of crates, how would you build an example more simply?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Looking at the logs above it seems like onig_sys v61.1.0 is being used rather than v61.1.1. The latter contains the msvc build support. Could you try running cargo update to upgrade the version of onig_sys?