sergiobenitez / proc-macro2-diagnostics Goto Github PK
View Code? Open in Web Editor NEWDiagnostics for stable and nightly proc-macros!
License: Apache License 2.0
Diagnostics for stable and nightly proc-macros!
License: Apache License 2.0
proc-macro-error has some extremely popular dependents but appears to be abandoned with no activity in the past year and 3 separate merge requests updating its syn dependency. It would be neat to help users of that crate migrate to this one.
Hi Sergio ๐
Could you cut a new release of this crate with the latest version of version-check
? I'm running into a version conflict with a few other libraries and it looks like the root of it is this library being pinned on 0.9.1
.
If you'd like me to put up a PR I'm happy to do that.
I'm using Rocket (which is awesome, BTW) and noticed that sometimes error messages in my editor would be mangled with ASCII color codes, making the error messages very hard to read.
In terminal:
In editor:
I thought this was an issue with rust-analyzer, since I do not see the ASCII color codes printed if I pipe cargo build
into cat
, so I posted an issue there. But the people over there say that it is caused by your implementation of Display here:
proc-macro2-diagnostics/src/line.rs
Lines 77 to 97 in 45fa2d6
You should really read rust-lang/rust-analyzer#15443 first to get all of the context.
I have not yet wrapped my head around all the parts involved here, since I am pretty new to Rust. But I thought I'd post this here to see what you think.
cargo new -q foo
cd foo
cargo add -q [email protected]
cat <<EOF > src/main.rs
use rocket::UriDisplayPath;
fn main() {
println!("Hello, world!");
}
#[derive(UriDisplayPath)]
pub enum Foo {
Bar,
}
EOF
cargo check
.src/main.rs
with Vim.Right now, the crate specifies syn = "2"
, which pulls in all the default features from syn
.
Instead, the crate should specify the features it needs explicitly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.