• Stars
    star
    11
  • Rank 1,642,634 (Top 34 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ”Ž A package that wraps ripgrep and provides a Swift interface. For macOS and iOS

SwiftyRipgrep

SwiftyRipgrep Platform iOS Badge macOS Badge

This repository contains a Swift package that wraps ripgrep to be used programmatically in iOS (device and simulator) and macOS.

Usage

SwiftyRipgrep is distributed as a Swift Package. All you need to do is to add the dependency to your project through Xcode or in the Package.swift of your package:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/chimerarun/SwiftyRipgrep.git", from: "13.0.0")
    ],
    ...
)

Version: The version of SwiftyRipgrep aligns with the version of Ripgrep wrapped so version 13.0.0 indicates that the Swift package is using the same version of Ripgrep.

Development

System dependencies

We recommend the usage of asdf to install the dependencies necessary to contribute to this project:

Generate the Swift Package

The project uses swift-bridge, a Rust tool that leverages macros and other build-time tools to generate the Swift Package from the Rust code. If you change the Rust code or update Cargo dependencies you'll have to run bin/generate.rb. The script will update the Package.swift and the content under Sources and generate a RustXcframework.xcframework directory at the root.

Testing the generated Swift package

The repository contains a Swift package under fixture that contains a tests target to test the public interface of the SwiftyRipgrep package generated at the root. You can run the tests by running swift test --package-path ./fixture

References

More Repositories

1

tuist

๐Ÿš€ Create, maintain, and interact with Xcode projects at scale
Swift
4,208
star
2

XcodeProj

๐Ÿ“ Read, update and write your Xcode projects
Swift
1,963
star
3

microfeatures-guidelines

๐Ÿ“ฆ๐Ÿ“ uFeatures guidelines
311
star
4

microfeatures-example

๐Ÿ“ฆ๐Ÿ“ฑ Example of iOS app built using the uFeatures architecture
Swift
186
star
5

awesome-tuist

A community-driven collection of Tuist related posts, plugins, talks, and much more.
161
star
6

SwiftyTailwind

๐Ÿ’‡ A Swift Package to pull and run Tailwind from a Swift process
Swift
44
star
7

tuist-plugin-lint

A plugin that extends Tuist with SwiftLint functionalities.
Swift
36
star
8

tuist-action

A GitHub action to run Tuist from GitHub workflows
JavaScript
23
star
9

Path

๐Ÿ’ป Types to model file-system paths.
Swift
9
star
10

macker

Virtualized macOS environments using Apple's virtualization framework
Swift
9
star
11

ProjectAutomation

Swift
8
star
12

tuist-up

A CLI too powered by Swift to provision environments using an up.toml manifest file
Swift
6
star
13

ProjectDescription

Swift
6
star
14

swift-on-server-examples

๐ŸŒ Examples using Tuist with Swift on Server applications
Swift
6
star
15

SwiftTerminal

๐Ÿš€ A set of UI components for building terminal applications in Swift
Swift
6
star
16

swiftable-tuist-workshop

This repository contains the content for the Shiftable 2023 workshop about Tuist
Shell
6
star
17

XcodeProjCExt

๐Ÿ‘ฉโ€๐Ÿ’ปC extensions for XcodeProj
C
5
star
18

website

โญ๏ธ Tuist's website
Astro
5
star
19

bitrise-step-tuist

โšก๏ธ A step to run Tusit from Bitrise pipelines
Shell
4
star
20

ExampleTuistPlugin

This is an example Tuist plugin for testing purposes.
Swift
3
star
21

homebrew-tuist

Official Homebrew Tuist formula.
Ruby
3
star
22

example

๐Ÿ“ฑThis repository contains an example iOS modular app described with Tuist
Swift
3
star
23

cross-arch-compilation-with-macros

A Swift Package project to reproduce an issue compiling Swift Packages with Macros
Swift
3
star
24

reproduce-nio-bad-access-exc

A repository to reproduce a BAD_ACESS exception using NIO and Tuist
Swift
2
star
25

swift-macros-security

๐Ÿ“ฆ This repository contains an experiment to assess how secure Swift Macros are
Swift
2
star
26

ExampleTuistTemplate

This is an example Tuist template for testing purposes.
Swift
2
star
27

issue-swift-macros-editor

Shell
2
star
28

tuist-vapor-example

An example Vapor project using Tuist
Swift
2
star
29

SwiftyGlob

๐Ÿ’จ A fast globbing library for Swift
2
star
30

SwiftyESBuild

๐Ÿš‡ A Swift Package to run ESBuild
2
star
31

.github

A repository that contains the organization's README
2
star
32

old-docs

๐Ÿ“„ Tuist's documentation website
JavaScript
2
star
33

tuist-orb

๐Ÿš€ Easily install and run Tuist in your CircleCI jobs
Shell
1
star
34

handbook

๐Ÿ“š Tuist's handbook
1
star
35

cloud

โ˜๏ธ Open source Tuist Cloud implementation (deprecated)
TypeScript
1
star
36

package-with-circular-target-deps

Swift
1
star
37

decks

Swift
1
star
38

asdf-macker

โฌ‡๏ธ An asdf plugin to install Macker
Shell
1
star