Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texpresso-tonic build error in Rust 1.7.0. : No method named 'as_encoded_bytes' (src/bin/tectonic/v2cli.rs) #71

Open
sambaPython24 opened this issue Jul 28, 2024 · 1 comment

Comments

@sambaPython24
Copy link

Build error on Rust 1.7.0. : No method named 'as_encoded_bytes'

I did not find, which Rust version you used to compile ``make texpresso-tonic```but on 1.7.0. I get the

   Compiling tectonic v0.15.0 (/.../texpresso/tectonic)
error[E0599]: no method named `as_encoded_bytes` found for reference `&OsStr` in the current scope
   --> src/bin/tectonic/v2cli.rs:515:61
    |
515 | ...                   let mut path = path.as_os_str().as_encoded_bytes();
    |                                                       ^^^^^^^^^^^^^^^^ method not found in `&OsStr`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `tectonic` (bin "texpresso-tonic") due to previous error
make[1]: *** [Makefile.tectonic:11: tectonic] Error 101
make[1]: Leaving directory '/.../texpresso'
make: *** [Makefile:55: texpresso-tonic] Error 2

Which rust version do you use and is there an alternative for as_encoded_bytes?

@let-def
Copy link
Owner

let-def commented Jul 30, 2024

I use rust 1.80. I don't really know how to solve your problem, rust is mainly a dependency and I would like to get rid of it, but I don't have time for that at the moment.
The time package also broke recently, that can be fixed by running cargo update in ./tectonic folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants