
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
github.com/dickermoshe/zmanim-core/zmanim_core
Go bindings for the Zmanim Core library, providing Jewish calendar calculations and zmanim (halachic times) functionality.
Install the Go package:
go get github.com/dickermoshe/zmanim-core/zmanim_core
Download the dynamic libraries from the GitHub releases page
Place the library files in your Go project directory:
zmanim_core.dll
to the same directory as your Go executablelibzmanim_core.so
to your system library path (e.g., /usr/local/lib/
) or the same directory as your executablelibzmanim_core.dylib
to your system library path or the same directory as your executableImport and use the Go bindings:
package main
import (
"fmt"
"time"
zmanim_core "github.com/dickermoshe/zmanim-core/zmanim_core"
)
func main() {
msSinceEpoch := time.Now().UnixMilli()
location := zmanim_core.NewGeolocation(31.768319, 35.213711, 0)
calendar := zmanim_core.NewAstronomicalCalendar(msSinceEpoch, *location)
sunrise := calendar.GetSunrise()
// Parse the sunrise time to a time.Time ms since epoch
sunriseTime := time.UnixMilli(*sunrise)
fmt.Println("Sunrise time:", sunriseTime)
}
go build -o your_app main.go
./your_app # On Windows: your_app.exe
If you prefer to statically link the Rust library into your Go binary:
Download the static libraries from the GitHub releases page
zmanim_core.lib
libzmanim_core.a
Place the static library in your project directory or system library path
Build with static linking flags:
# Windows
set CGO_ENABLED=1
set CGO_LDFLAGS=-L. -lzmanim_core
go build -ldflags "-linkmode external -extldflags -static" -o your_app.exe main.go
# Linux/macOS
export CGO_ENABLED=1
export CGO_LDFLAGS="-L. -lzmanim_core"
go build -ldflags "-linkmode external -extldflags -static" -o your_app main.go
"cannot find library" error:
LD_LIBRARY_PATH
CGO compilation errors:
export CGO_ENABLED=1
(Linux/macOS) or set CGO_ENABLED=1
(Windows)Static linking issues:
.lib
, .a
) not the dynamic oneThis project is licensed under the same license as the main Zmanim Core project.
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.