The rustmaker provides comprehensive support for converting UNO type definitions into idiomatic Rust code with proper memory safety and type system integration. Also adds the RustFile, RustOptions, and RustProducer classes to handle Rust code generation, file management, and command line option parsing for various UNO type kinds such as enums, structs, and interfaces. Change-Id: Iaf87af13352c55e81c1745ef7a8f591c3e61e0a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188088 Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com> Tested-by: Jenkins
28 lines
755 B
C++
28 lines
755 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <rtl/string.hxx>
|
|
#include <codemaker/options.hxx>
|
|
|
|
/**
|
|
* Command line options parser for rustmaker
|
|
*/
|
|
class RustOptions : public Options
|
|
{
|
|
public:
|
|
RustOptions() { m_program = "rustmaker"_ostr; }
|
|
|
|
bool initOptions(int argc, char* argv[], bool bCmdFile = false) override;
|
|
OString prepareHelp() override;
|
|
};
|
|
|
|
/* vim:set shiftwidth=2 softtabstop=4 expandtab: */
|