Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you're working with strings, the sds safer string code, based on redis internals, is the best imo - https://github.com/antirez/sds
In some cases, it really is simpler just to keep track of size, and remember to do bounds checking on any user-dependent data. Keeping track of free's can be tricky for some use cases (particularly avoiding use-after-free and double-free). If this applies to you, you can implement your own refcounting very simply (for example https://github.com/jeraymond/refcount )
If you want the cargo experience of things just working (tm), then you could take a look at cmake-init. It gives you: