Skip to content

404Setup/Mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mars

WARNING: This is not for regular users

A super lightweight clone of api.papermc.io

Lightweight does not mean incomplete functionality. On the contrary, Mars has fully implemented all the APIs of bibliothek and further optimized them.

Mars is 1:1 compatible with the bibliothek API (except for database construction and private APIs). You can seamlessly switch to Mars。

👉Download

👉Wiki

Build

Build scripts are only useful if cross-platform builds are required.

To use the build script, you must install the Zig toolchain and PowerShell 7.

Prerequisites for building Mars:

  • GCC or clang
  • ZigCC (Replacement for gcc and clang, included in the zig toolchain)
  • Golang 1.24.3
  • PowerShell 7 (No installation required if you don't use the build script)

Manual build

@Bash

export CGO_ENABLED=1
go mod tidy
go build -ldflags "-s -w"

@CMD

set CGO_ENABLED=1
go mod tidy
go build -ldflags "-s -w"

@PowerShell

$env:CGO_ENABLED=1
go mod tidy
go build -ldflags "-s -w"

Using build scripts

Note that the Mars build script requires PowerShell 7 and the Zig toolchain to be installed.

The build script is suitable for cross-compilation.

The first build will be slow, please be patient.

./build.ps1

Scan Report

Due to the large number of build products, only reports for the latest versions of amd64 v1 and arm64 are provided.

Version: v1.4.2

AMD64 v1

👉Windows

👉Linux

ARM64

👉Windows

Linux: The toolchain is broken and no binaries can be provided for it.

Contact Us

Discord: https://discord.gg/PxgFqNmR2h

About

A super lightweight clone of api.papermc.io

Topics

Resources

License

Stars

Watchers

Forks