
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
The optional package provides an option type, which can either be empty or hold a value. In that respect, it's very similar to an ordinary pointer type, except it has methods that make its possible emptiness more explicit.
The interface of the optional.Value type is modeled on Java's
java.util.Optional type and C++'s std::optional.
go get sweetkennedy.net/optional
import sweetkennedy.net/optional
full := optional.New(42)
empty := optional.Value[int]{}
fmt.Printf("full: %v\n", full) // Output: 42
fmt.Printf("empty: %v\n", empty) // Output: None
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.