Git Product home page Git Product logo

laugharne / abf_anchor_build_fixer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.21 MB

The first build with Anchor can be challenging, especially for those who are not familiar with Rust compilations and Anchor environnement. This script which overlays Anchor calls (cli commands), tries to automaticaly fix the build issues you are most likely to encounter as best as it can.

Shell 100.00%
anchor bash bash-script rust script solana cargo

abf_anchor_build_fixer's Introduction

Anchor Build fixer

(Tara Winstead - Pexels)



๐Ÿ”ญ Overview

The first build with Anchor can be challenging, especially for those who are not familiar with Rust compilations and Anchor environnement.

This script ("abf.sh") which overlays Anchor calls (cli commands), tries to dynamicaly fix the build issues you are most likely to encounter as best as it can.

It defines several functions in Bash to handle building and fixing errors in an Anchor project. It includes color-coded output and error handling. Each function is documented with comments to explain its purpose and usage.

This project is currently a work in progress and may not be ready for production use !

๐Ÿ•‘ Current versions

I actually build Anchor projects with the following versions of OS and tools:

Tools Versions
OS Ubuntu 22.04.2 LTS x86_64
rustc 1.77.1
cargo 1.77.1
solana 1.17.4
node 18.16.0
anchor 0.29.0

๐Ÿ“ฆ Installation

  • bash: cat abf.sh >> ~/.bashrc or cat abf.sh >> ~/.bash_functions
  • zsh: cat alias.sh >> ~/.zshrc

๐Ÿš€ How to run

Go into your projects directory, then type abf init <PROJECT_NAME> to create project sub-directory <PROJECT_NAME>.

๐Ÿ’ป Usage

abf <command> <OPTIONAL_PARAMETER>

โœ๏ธ Commands

Command Description Parameter
init, i Initializes a workspace <PROJECT_NAME> (1)
build, b Build a workspace none
version Print 'abf' version none
versions Print assets versions none
help Print help message none
  • (1) : mandatory

๐Ÿ“š Additional resources

abf_anchor_build_fixer's People

Contributors

laugharne avatar

Watchers

 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.