cargo-toml-format's Introduction
cargo-toml-format's People
Forkers
jayvdbcargo-toml-format's Issues
taplo-cli
Not sure if you're aware of, but a general purpose toml formatter exists. It's rather flexible and I use it for CI already. Might be worth a look :)
fn main is empty
It is a bit misleading to have a main.rs
with a fn main
, which lets Rust believe the git repo can be installed as a binary, but it does nothing.
It shouldnt be too hard to fill in this function with a simple routine to load Cargo.toml
from the current directory, apply whatever formatting routines are at alpha quality, and write it back out to disk or stdout.
Tests refer to non-existant directory
E:\\programming\\ark\\
is referred to in the tests.
Feature idea: lint workspace dependencies
Hi Timon, big fan of your crates, had this idea:
-
In
cargo_fmt_manifest.toml
:workspace-only-dependencies = [ "clap", "crossterm", "tokio", ]
-
This should now be an error:
[dependencies] clap = "4.1"
e.g.:
Error:
clap
is defined at the workspace level, yet its version is specified as "4.1". Please specify it
asclap = { workspace = true }
. See:https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table
Hmm, the error message should probably also mention the
workspace-only-dependencies
array.
What do you think?
tests fail to build
Using stable
:
error[E0423]: expected value, found crate `toml`
--> tests/sandbox.rs:44:44
|
44 | let mut cargo = CargoToml::from_config(toml.to_string(), config).unwrap();
| ^^^^- help: use the path separator to refer to an item: `::`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.