Coder Social home page Coder Social logo

topi314 / udpqueue.rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minndevelopment/udpqueue.rs

0.0 0.0 0.0 174 KB

Rust implementation of the JDA-NAS interface

License: Apache License 2.0

Shell 3.23% Java 30.38% Rust 45.74% Kotlin 20.65%

udpqueue.rs's Introduction

publish-natives rust-clippy analyze

udpqueue.rs

This is a rust implementation of the original JDA-NAS natives. This can be used to make a minimal modular jar with only the required target natives.

Setup

Supported native platforms:

Linux x86 (intel):

Linux ARM (v7 and x64):

Windows x86 (intel):

MacOS/Darwin universal (x86 intel & aarch64 M1):

More platforms can be added on request. Linux shared libraries are compiled against GLIBC 2.18.

While this project is published to maven-central, the lavaplayer commons dependency is currently only available through jcenter. So you will have to depend on jcenter for now.

  1. Add the original jda-nas dependency to your project, and exclude udp-queue from its transitive dependencies:
repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    implementation("com.sedmelluq:jda-nas:1.1.0") {
        exclude(module="udp-queue")
    }
}
  1. Add udpqueue natives
dependencies {
    // Fully modular, choose which platforms to use!
    implementation("club.minnced:udpqueue-native-linux-x86-64:0.2.7") // adds linux 64bit
    implementation("club.minnced:udpqueue-native-win-x86-64:0.2.7") // adds windows 64bit
}

Alternatively, you can also install rustup locally on your target platform and build it yourself.

Use ./install.sh <triplet> to install the jar for your specific platform in maven local. Example: ./install.sh x86_64-unknown-linux-gnu

To add all supported platforms, you can use this:

dependencies {
    implementation("club.minnced:udpqueue-native-linux-x86-64:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-x86:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-aarch64:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-arm:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-musl-x86-64:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-musl-x86:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-musl-aarch64:0.2.7")
    implementation("club.minnced:udpqueue-native-linux-musl-arm:0.2.7")
    implementation("club.minnced:udpqueue-native-win-x86-64:0.2.7")
    implementation("club.minnced:udpqueue-native-win-x86:0.2.7")
    implementation("club.minnced:udpqueue-native-darwin:0.2.7")
}

udpqueue.rs's People

Contributors

minndevelopment avatar gelbpunkt avatar jellybrick avatar pringlers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.