placenew
v2.0.1 ExperimentalA crate providing the macro 'place_boxed' which allows you to create a object in-place on the heap using the normal struct initializer, the macro uses Box::new_uninit(), initializes all members using the values from the struct initializer, and then calls .assume_init() for regular value types => writes the expression in-place for array types ([T; N]) => generates a for loop for expressions such as [0; 100], and generates a sequence of arr[i] = v for an expression such as [0, 1, 2, 3]
Quick Verdict
- โActively maintained (updated 19d ago)
- โTiny footprint (4KB, 3 deps)
- โPermissive license (MIT)
Security
Deep Insights
91 downloads in the last 30 days (3/day avg).
Only 3 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 4KB, placenew is lightweight. Small crate size correlates with focused, well-scoped functionality.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata