Coder Social home page Coder Social logo

luchobazz / godot-rust-cli-upgrader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robertcorponoi/godot-rust-cli-upgrader

1.0 0.0 0.0 13 KB

A CLI tool to help you upgrade your Godot Rust CLI project between versions that introduce breaking changes.

License: MIT License

Rust 100.00%

godot-rust-cli-upgrader's Introduction

Godot Rust CLI Upgrader

A CLI tool to help you upgrade your Godot Rust CLI project between versions that introduce breaking changes.

Build Status Crates.io Crates.io Crates.io Discord

Documentation

Note: If you have any questions about how to use this CLI tool or want to report a bug, feel free to open an issue in the GitHub or the Discord.

Also keep in mind that the main branch will usually be ahead of the version on crates.io.

Table of Contents

Introduction

Since Godot Rust CLI is going through breaking changes pre-v1.0.0, Godot Rust CLI Upgrader was created to help alleviate some of the pain from upgrading between versions.

Installation

To install Godot Rust CLI Upgrader, use:

cargo install godot-rust-cli-upgrader

To upgrade your version of Godot Rust CLI Upgrader to the latest version, use:

cargo install --force godot-rust-cli-upgrader

Step-by-Step

This guide will walk you through upgrading your Godot Rust CLI library to the latest version. If you would rather just look at the API, check it out below.

  1. The first step is to navigate to the library created by Godot Rust CLI. This should be the directory with the configuration file (either project.toml, godot-rust-cli.toml, or godot-rust-cli.json).

  2. Figure out what version you want to upgrade to. This should always be the latest version, which at the time of writing this is v0.3.x, but you have a choice to upgrade to a different version. For this guide, we'll be upgrading to to v0.3.x.

Note: Godot Rust CLI Upgrader works with major and minor versions but it doesn't care about patches. The only reason we even use minor versions is because pre-v1.0.0 there's going to be breaking changes. This means that when we upgrade, we specify the patch as x like "0.2.x" or "0.3.x".

  1. Now that we've decided we want to upgrade to version 0.3.x, we can use the upgrade command like so:
godot-rust-cli-upgrader upgrade "0.3.x"
  1. At this point the CLI should notify you of the steps it is taking until it is done. You'll notice that if you're upgrading through multiple versions, like from 0.1.x to 0.3.x, it'll upgrade the library from 0.1.x to 0.2.x first, and then from 0.2.x to 0.3.x. When it's finished you should be able to use your library with the latest version Godot Rust CLI.

API

upgrade

Upgrades the version of the library to be compatible with the specified version of Godot Rust CLI.

Usage:

godot-rust-cli-upgrader upgrade <version>

where:

  • version is the version to upgrade the library to. Currently the available versions are: "0.2.x" and "0.3.x".

Examples:

Upgrading the library to version "0.3.x":

godot-rust-cli-upgrader upgrade "0.3.x"

version

Returns the version of Godot Rust CLI Upgrader.

Usage:

godot-rust-cli-upgrader --version

Questions

Check out the Discord to ask any questions or concerns about the cli or Godot + Rust in general.

License

MIT

godot-rust-cli-upgrader's People

Contributors

robertcorponoi avatar

Stargazers

 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.