Comments (4)
I'm currently in need of an actual camelCase modifier to generate JSON names (with stringify!), and I wonder if it's better to go down the path of doing a breaking change rename, or paste
will simply never support camelCase as it's rarely used in Rust code and the breaking change is too confusing. @dtolnay thoughts?
from paste.
On second thought, I think putting the new option as lower_camel
is also a possibility, while the existing one can be optionally aliased to upper_camel
for clarity.
from paste.
I've published a hacky fork that uses lower camel case: https://crates.io/crates/camelpaste
I won't be maintaining it though so consume at your own risk
from paste.
I also published a fork using convert_case under the name affix. wanted to completely outsource the casing logic 😅
from paste.
Related Issues (20)
- is test suite broken? HOT 2
- Edge cases with `:camel`
- Paste sometimes produces keywords HOT 2
- Compile error with old Glibc? HOT 1
- Access to variable declared in macro HOT 3
- Wishlist: local token identifiers? HOT 2
- Ident concatenation doesn't work HOT 1
- Does not preserve invisible delimiters from declarative macros HOT 1
- Build errors following the release of `1.0.9` HOT 2
- Add $var:unquote modifier HOT 1
- Lifetime idents support HOT 3
- Possible to use bracket inside a paste expansion? HOT 1
- Can not use in literals? HOT 1
- Inconsistent expression precedence when using camel HOT 1
- Cannot generate f32/f64 values
- [Feature Request] Inflection (aka plurals and sinulars) HOT 1
- Cannot use with an expr containing "::": expected identifier after `:` HOT 1
- Snake case preserving `/` (slash) characters HOT 1
- `#[doc]` does not concat if a macro produces a literal string HOT 1
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.
from paste.