llm-ls icon indicating copy to clipboard operation
llm-ls copied to clipboard

Cannot build testbed on Windows

Open noahbald opened this issue 1 year ago • 2 comments

https://github.com/huggingface/llm-ls/blob/2a433cdf75dc0a225e95753256f2601161bc6747/crates/testbed/src/main.rs#L346C24-L346C24

The linked statement results in the following error.

error[E0425]: cannot find function `symlink` in module `fs`
   --> crates\testbed\src\main.rs:346:21
    |
346 |                 fs::symlink(link_target, dst_path.clone()).await?;
    |                     ^^^^^^^ not found in `fs`
    |
note: found an item that was configured out
   --> C:\Users\noahw\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.32.0\src\fs\mod.rs:114:9
    |
114 |     mod symlink;
    |         ^^^^^^^
note: found an item that was configured out
   --> C:\Users\noahw\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.32.0\src\fs\mod.rs:115:28
    |
115 |     pub use self::symlink::symlink;
    |

This is available in unix only https://docs.rs/tokio/latest/tokio/fs/fn.symlink.html

noahbald avatar Dec 31 '23 01:12 noahbald

Ah, will have to use #[cfg()] macros & symlink_dir / symlink_file

McPatate avatar Jan 02 '24 18:01 McPatate

same issue

dsisnero avatar Apr 10 '24 14:04 dsisnero